Skip to content

Commit e16a290

Browse files
noahfraiture0xda157
andcommitted
foodfetch: init at 0.1.1
Apply suggestions from code review Co-authored-by: emaryn <[email protected]> fix Update pkgs/by-name/fo/foodfetch/package.nix Co-authored-by: awwpotato <[email protected]> Update pkgs/by-name/fo/foodfetch/package.nix Co-authored-by: awwpotato <[email protected]>
1 parent effac2a commit e16a290

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
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)