File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
pkgs/by-name/fo/foodfetch Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments