Commit b37ee274 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by Masum Reza
Browse files

below: minor packaging improvements



- Removed with lib; statement from meta;
- rev -> tag
- sha256 -> hash

Signed-off-by: default avatarFernando Rodrigues <alpha@sigmasquadron.net>
parent 529d4344
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -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";
  };