Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, rustPlatform, fetchFromGitHub, Security, sqlite, xdg-utils}: 2 3rustPlatform.buildRustPackage rec { 4 pname = "anup"; 5 version = "0.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "Acizza"; 9 repo = "anup"; 10 rev = version; 11 sha256 = "sha256-4pXF4p4K8+YihVB9NdgT6bOidmQEgWXUbcbvgXJ0IDA="; 12 }; 13 14 buildInputs = [ 15 sqlite 16 xdg-utils 17 ] ++ lib.optionals stdenv.isDarwin [ 18 Security 19 ]; 20 21 cargoLock = { 22 lockFile = ./Cargo.lock; 23 outputHashes = { 24 "tui-utils-0.10.0" = "sha256-xazeXTGiMFZEcSFEF26te3LQ5oFFcskIiYkLzfsXf/A="; 25 }; 26 }; 27 28 meta = with lib; { 29 homepage = "https://github.com/Acizza/anup"; 30 description = "An anime tracker for AniList featuring a TUI"; 31 license = licenses.agpl3Only; 32 maintainers = with maintainers; [ natto1784 ]; 33 }; 34}