nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 35 lines 755 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "rs-tftpd"; 10 version = "0.4.0"; 11 12 src = fetchFromGitHub { 13 owner = "altugbakan"; 14 repo = "rs-tftpd"; 15 rev = version; 16 hash = "sha256-iUoIBQTMC+oXsuZcnSp1K4uFuETKTcfaW6+fBa5PQw8="; 17 }; 18 19 cargoHash = "sha256-ZED5+WnOALLXAW/l/QMFKWco6kJnz4rFv8nfp00HS78="; 20 21 buildFeatures = [ "client" ]; 22 23 passthru.updateScript = nix-update-script { }; 24 25 meta = with lib; { 26 description = "TFTP Server Daemon implemented in Rust"; 27 homepage = "https://github.com/altugbakan/rs-tftpd"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ 30 adamcstephens 31 matthewcroughan 32 ]; 33 mainProgram = "tftpd"; 34 }; 35}