below: minor packaging improvements
- Removed with lib; statement from meta; - rev -> tag - sha256 -> hash Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
committed by
Masum Reza
parent
529d4344f5
commit
b37ee2747b
@@ -16,14 +16,16 @@ rustPlatform.buildRustPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebookincubator";
|
||||
repo = "below";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-87Fdx3Jqi3dNWM5DZl+UYs031qn2DoiiWd3IysT/glQ=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-87Fdx3Jqi3dNWM5DZl+UYs031qn2DoiiWd3IysT/glQ=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-iRDe3zg7tfEYGLCRY6bJ6OdoT8ej0MB/vteCIf5xqNA=";
|
||||
|
||||
prePatch = ''sed -i "s,ExecStart=.*/bin,ExecStart=$out/bin," etc/below.service'';
|
||||
prePatch = ''
|
||||
sed -i "s,ExecStart=.*/bin,ExecStart=$out/bin," etc/below.service
|
||||
'';
|
||||
postInstall = ''
|
||||
install -d $out/lib/systemd/system
|
||||
install -t $out/lib/systemd/system etc/below.service
|
||||
@@ -48,11 +50,11 @@ rustPlatform.buildRustPackage rec {
|
||||
# needs /sys/fs/cgroup
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ globin ];
|
||||
meta = {
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ globin ];
|
||||
description = "Time traveling resource monitor for modern Linux systems";
|
||||
license = licenses.asl20;
|
||||
license = lib.licenses.asl20;
|
||||
homepage = "https://github.com/facebookincubator/below";
|
||||
mainProgram = "below";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user