Skip to content

Commit 9a62eb0

Browse files
authored
foodfetch: init at 0.1.1 (#396172)
2 parents 8852da7 + a503352 commit 9a62eb0

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17395,6 +17395,12 @@
1739517395
github = "noaccOS";
1739617396
githubId = 24324352;
1739717397
};
17398+
noahfraiture = {
17399+
name = "Noahcode";
17400+
email = "[email protected]";
17401+
github = "noahfraiture";
17402+
githubId = 94681915;
17403+
};
1739817404
noahgitsham = {
1739917405
name = "Noah Gitsham";
1740017406
github = "noahgitsham";
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
})

0 commit comments

Comments
 (0)