diff --git a/pkgs/by-name/be/below/package.nix b/pkgs/by-name/be/below/package.nix index 9478efa68fd3..ac259159db07 100644 --- a/pkgs/by-name/be/below/package.nix +++ b/pkgs/by-name/be/below/package.nix @@ -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"; };