2 binutils-unwrapped, # strings
14 # No gems used, so mkDerivation is fine.
16 additionalPath = lib.makeBinPath [
24 stdenv.mkDerivation rec {
28 src = fetchFromGitHub {
32 hash = "sha256-w/TKzbZmMt4CX2KnLwPvR1ydp5NNlp9nNx78jJvhp54=";
35 nativeBuildInputs = [ makeWrapper ];
37 buildInputs = [ ruby ];
42 mkdir -p $out/libexec/nix-top
43 install -D -m755 ./nix-top $out/bin/nix-top
44 wrapProgram $out/bin/nix-top \
45 --prefix PATH : "$out/libexec/nix-top:${additionalPath}"
47 + lib.optionalString stdenv.hostPlatform.isDarwin ''
48 ln -s /bin/stty $out/libexec/nix-top
55 description = "Tracks what nix is building";
56 homepage = "https://github.com/jerith666/nix-top";
57 license = lib.licenses.mit;
58 maintainers = [ lib.maintainers.jerith666 ];
59 platforms = lib.platforms.unix;
60 mainProgram = "nix-top";