foodfetch: init at 0.1.1 (#396172)

This commit is contained in:
Weijia Wang
2025-04-15 10:27:40 +02:00
committed by GitHub
2 changed files with 46 additions and 0 deletions
+6
View File
@@ -17395,6 +17395,12 @@
github = "noaccOS";
githubId = 24324352;
};
noahfraiture = {
name = "Noahcode";
email = "pro@noahcode.dev";
github = "noahfraiture";
githubId = 94681915;
};
noahgitsham = {
name = "Noah Gitsham";
github = "noahgitsham";
+40
View File
@@ -0,0 +1,40 @@
{
lib,
rustPlatform,
fetchFromGitHub,
openssl,
pkg-config,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "foodfetch";
version = "0.1.1";
src = fetchFromGitHub {
owner = "noahfraiture";
repo = "foodfetch";
tag = "v${finalAttrs.version}";
hash = "sha256-TUgj3zS18lCtkyxYrG4f156YqFSCGXzfbK6b+Owacto=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-ZPV6sDQHV+G0HxRAVlcilh4tCCQspTnxnH1aHxVP8tI=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
doInstallCheck = true;
nativeInstallCheck = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/noahfraiture/foodfetch/releases/tag/v${finalAttrs.version}";
description = "Yet another fetch to quickly get recipes";
homepage = "https://github.com/noahfraiture/foodfetch";
license = lib.licenses.mit;
mainProgram = "foodfetch";
maintainers = with lib.maintainers; [ noahfraiture ];
};
})