Skip to content

Commit b37ee27

Browse files
SigmaSquadronJohnRTitor
authored andcommitted
below: minor packaging improvements
- Removed with lib; statement from meta; - rev -> tag - sha256 -> hash Signed-off-by: Fernando Rodrigues <[email protected]>
1 parent 529d434 commit b37ee27

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pkgs/by-name/be/below/package.nix

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ rustPlatform.buildRustPackage rec {
1616
src = fetchFromGitHub {
1717
owner = "facebookincubator";
1818
repo = "below";
19-
rev = "v${version}";
20-
sha256 = "sha256-87Fdx3Jqi3dNWM5DZl+UYs031qn2DoiiWd3IysT/glQ=";
19+
tag = "v${version}";
20+
hash = "sha256-87Fdx3Jqi3dNWM5DZl+UYs031qn2DoiiWd3IysT/glQ=";
2121
};
2222

2323
useFetchCargoVendor = true;
2424
cargoHash = "sha256-iRDe3zg7tfEYGLCRY6bJ6OdoT8ej0MB/vteCIf5xqNA=";
2525

26-
prePatch = ''sed -i "s,ExecStart=.*/bin,ExecStart=$out/bin," etc/below.service'';
26+
prePatch = ''
27+
sed -i "s,ExecStart=.*/bin,ExecStart=$out/bin," etc/below.service
28+
'';
2729
postInstall = ''
2830
install -d $out/lib/systemd/system
2931
install -t $out/lib/systemd/system etc/below.service
@@ -48,11 +50,11 @@ rustPlatform.buildRustPackage rec {
4850
# needs /sys/fs/cgroup
4951
doCheck = false;
5052

51-
meta = with lib; {
52-
platforms = platforms.linux;
53-
maintainers = with maintainers; [ globin ];
53+
meta = {
54+
platforms = lib.platforms.linux;
55+
maintainers = with lib.maintainers; [ globin ];
5456
description = "Time traveling resource monitor for modern Linux systems";
55-
license = licenses.asl20;
57+
license = lib.licenses.asl20;
5658
homepage = "https://github.com/facebookincubator/below";
5759
mainProgram = "below";
5860
};

0 commit comments

Comments
 (0)