anup: modernize, format, move to by-name (#388115)

This commit is contained in:
Aleksana 2025-03-08 20:32:14 +08:00 committed by GitHub
commit 10de0f1d6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 36 additions and 49 deletions

View file

@ -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";
};
}

View file

@ -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";
};
}

View file

@ -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;
};