foodfetch: init at 0.1.1 (#396172)

authored by Weijia Wang and committed by GitHub 9a62eb09 8852da7e

+46
+6
maintainers/maintainer-list.nix
··· 17395 17395 github = "noaccOS"; 17396 17396 githubId = 24324352; 17397 17397 }; 17398 + noahfraiture = { 17399 + name = "Noahcode"; 17400 + email = "pro@noahcode.dev"; 17401 + github = "noahfraiture"; 17402 + githubId = 94681915; 17403 + }; 17398 17404 noahgitsham = { 17399 17405 name = "Noah Gitsham"; 17400 17406 github = "noahgitsham";
+40
pkgs/by-name/fo/foodfetch/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + openssl, 6 + pkg-config, 7 + versionCheckHook, 8 + nix-update-script, 9 + }: 10 + rustPlatform.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 + useFetchCargoVendor = true; 21 + cargoHash = "sha256-ZPV6sDQHV+G0HxRAVlcilh4tCCQspTnxnH1aHxVP8tI="; 22 + 23 + nativeBuildInputs = [ pkg-config ]; 24 + 25 + buildInputs = [ openssl ]; 26 + 27 + doInstallCheck = true; 28 + nativeInstallCheck = [ versionCheckHook ]; 29 + 30 + passthru.updateScript = nix-update-script { }; 31 + 32 + meta = { 33 + changelog = "https://github.com/noahfraiture/foodfetch/releases/tag/v${finalAttrs.version}"; 34 + description = "Yet another fetch to quickly get recipes"; 35 + homepage = "https://github.com/noahfraiture/foodfetch"; 36 + license = lib.licenses.mit; 37 + mainProgram = "foodfetch"; 38 + maintainers = with lib.maintainers; [ noahfraiture ]; 39 + }; 40 + })