Skip to content

Commit 94f6105

Browse files
authored
Merge: lon 0.3.0 -> 0.4.0 (#404623)
2 parents c328e3e + 9001bb8 commit 94f6105

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

pkgs/by-name/lo/lon/package.nix

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,42 @@
22
rustPlatform,
33
lib,
44
fetchFromGitHub,
5+
makeBinaryWrapper,
6+
nix-prefetch-git,
7+
gitMinimal,
8+
nix-update-script,
59
}:
610

711
rustPlatform.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";

0 commit comments

Comments
 (0)