mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
anup: modernize, format, move to by-name (#388115)
This commit is contained in:
commit
10de0f1d6d
3 changed files with 36 additions and 49 deletions
|
@ -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";
|
||||
};
|
||||
}
|
36
pkgs/by-name/an/anup/package.nix
Normal file
36
pkgs/by-name/an/anup/package.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue