File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 22 rustPlatform ,
33 lib ,
44 fetchFromGitHub ,
5+ makeBinaryWrapper ,
6+ nix-prefetch-git ,
7+ gitMinimal ,
8+ nix-update-script ,
59} :
610
711rustPlatform . buildRustPackage rec {
812 pname = "lon" ;
9- version = "0.3 .0" ;
13+ version = "0.4 .0" ;
1014
1115 src = fetchFromGitHub {
1216 owner = "nikstur" ;
1317 repo = "lon" ;
1418 tag = version ;
15- hash = "sha256-LtZhEfdO/kTbeDG/lhiH+9QPw3kgov72Xn1NelgNsE0 =" ;
19+ hash = "sha256-tF9nzTIX0pU/N+h6i7ftn8RhwVB1o3O9+g+sziJvGwc =" ;
1620 } ;
1721
1822 sourceRoot = "source/rust/lon" ;
1923
2024 useFetchCargoVendor = true ;
21- cargoHash = "sha256-cr1+WBlq/uuOVDIbgN5UhsQ0ISLDYOxyGRnQ6ntEH5w=" ;
25+ cargoHash = "sha256-Aa8Rkny5hBfQpGcZYJrbzU00ExJPTfhQzKDbHAt8rXE=" ;
26+
27+ nativeBuildInputs = [ makeBinaryWrapper ] ;
28+
29+ postInstall = ''
30+ wrapProgram $out/bin/lon --prefix PATH : ${
31+ lib . makeBinPath [
32+ nix-prefetch-git
33+ gitMinimal
34+ ]
35+ }
36+ '' ;
37+
38+ passthru = {
39+ updateScript = nix-update-script { } ;
40+ } ;
2241
2342 meta = {
2443 description = "Lock & update Nix dependencies" ;
You can’t perform that action at this time.
0 commit comments