diff --git a/pkgs/applications/misc/anup/default.nix b/pkgs/applications/misc/anup/default.nix deleted file mode 100644 index ef343f346146..000000000000 --- a/pkgs/applications/misc/anup/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - lib, - stdenv, - rustPlatform, - fetchFromGitHub, - Security, - sqlite, - xdg-utils, -}: - -rustPlatform.buildRustPackage rec { - pname = "anup"; - version = "0.4.0"; - - src = fetchFromGitHub { - owner = "Acizza"; - repo = "anup"; - rev = version; - sha256 = "sha256-4pXF4p4K8+YihVB9NdgT6bOidmQEgWXUbcbvgXJ0IDA="; - }; - - buildInputs = - [ - sqlite - xdg-utils - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - Security - ]; - - cargoLock = { - lockFile = ./Cargo.lock; - outputHashes = { - "tui-utils-0.10.0" = "sha256-xazeXTGiMFZEcSFEF26te3LQ5oFFcskIiYkLzfsXf/A="; - }; - }; - - meta = with lib; { - homepage = "https://github.com/Acizza/anup"; - description = "Anime tracker for AniList featuring a TUI"; - license = licenses.agpl3Only; - maintainers = with maintainers; [ natto1784 ]; - mainProgram = "anup"; - }; -} diff --git a/pkgs/by-name/an/anup/package.nix b/pkgs/by-name/an/anup/package.nix new file mode 100644 index 000000000000..c40278653f65 --- /dev/null +++ b/pkgs/by-name/an/anup/package.nix @@ -0,0 +1,36 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + sqlite, + xdg-utils, +}: + +rustPlatform.buildRustPackage rec { + pname = "anup"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "Acizza"; + repo = "anup"; + tag = version; + hash = "sha256-4pXF4p4K8+YihVB9NdgT6bOidmQEgWXUbcbvgXJ0IDA="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-925R5pG514JiA7iUegFkxrDpA3o7T/Ct4Igqqcdo3rw="; + + buildInputs = [ + sqlite + xdg-utils + ]; + + meta = { + homepage = "https://github.com/Acizza/anup"; + description = "Anime tracker for AniList featuring a TUI"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ natto1784 ]; + mainProgram = "anup"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8588c147b936..d4747cf24f7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12821,10 +12821,6 @@ with pkgs; antimony = libsForQt5.callPackage ../applications/graphics/antimony { }; - anup = callPackage ../applications/misc/anup { - inherit (darwin.apple_sdk.frameworks) Security; - }; - apkeep = callPackage ../tools/misc/apkeep { inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; };