Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 34 lines 835 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 versionCheckHook, 6 nix-update-script, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "xdcc-cli"; 11 version = "0.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "jreiml"; 15 repo = "xdcc-cli"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-rPMerxQLB+/S3FtM4e5lCk0yAOUtWRhA8debwxbqmNI="; 18 }; 19 20 cargoHash = "sha256-qAQkKGyLEUR4Pf5KVjqBsdyFxsgD/docRWKrQsf7KVo="; 21 22 nativeInstallCheckInputs = [ versionCheckHook ]; 23 24 passthru.updateScript = nix-update-script { }; 25 26 meta = { 27 description = "CLI tool for downloading files using XDCC written in Rust"; 28 homepage = "https://github.com/jreiml/xdcc-cli"; 29 license = lib.licenses.mit; 30 maintainers = with lib.maintainers; [ guilhermenl ]; 31 platforms = lib.platforms.unix; 32 mainProgram = "xdcc-cli"; 33 }; 34})