nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 openssl, 6 pkg-config, 7 versionCheckHook, 8 nix-update-script, 9}: 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "foodfetch"; 12 version = "0.1.1"; 13 src = fetchFromGitHub { 14 owner = "noahfraiture"; 15 repo = "foodfetch"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-TUgj3zS18lCtkyxYrG4f156YqFSCGXzfbK6b+Owacto="; 18 }; 19 20 cargoHash = "sha256-ZPV6sDQHV+G0HxRAVlcilh4tCCQspTnxnH1aHxVP8tI="; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = [ openssl ]; 25 26 doInstallCheck = true; 27 nativeInstallCheckInputs = [ versionCheckHook ]; 28 29 passthru.updateScript = nix-update-script { }; 30 31 meta = { 32 changelog = "https://github.com/noahfraiture/foodfetch/releases/tag/v${finalAttrs.version}"; 33 description = "Yet another fetch to quickly get recipes"; 34 homepage = "https://github.com/noahfraiture/foodfetch"; 35 license = lib.licenses.mit; 36 mainProgram = "foodfetch"; 37 maintainers = with lib.maintainers; [ noahfraiture ]; 38 }; 39})