nixpkgs/pkgs/tools/nix/nix-output-monitor/default.nix

41 lines
1.4 KiB
Nix
Raw Normal View History

{ mkDerivation, ansi-terminal, async, attoparsec, base, containers
2021-02-21 02:37:08 +01:00
, cassava, directory, HUnit, mtl, nix-derivation, process, relude, lib
, stm, terminal-size, text, time, unix, wcwidth, fetchFromGitHub
, expect, runtimeShell
}:
mkDerivation rec {
pname = "nix-output-monitor";
2021-02-21 17:43:00 +01:00
version = "1.0.1.1";
src = fetchFromGitHub {
owner = "maralorn";
repo = "nix-output-monitor";
2021-02-21 17:43:00 +01:00
sha256 = "1wi1gsl5q1sy7k6k5wxhwpwzki7rghhbsyzm84hnw6h93w6401ax";
rev = "v${version}";
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
2021-02-21 02:37:08 +01:00
ansi-terminal async attoparsec base cassava containers directory mtl
nix-derivation relude stm terminal-size text time unix wcwidth
];
executableHaskellDepends = [
ansi-terminal async attoparsec base containers directory mtl
nix-derivation relude stm text time unix
];
testHaskellDepends = [
ansi-terminal async attoparsec base containers directory HUnit mtl
nix-derivation process relude stm text time unix
];
postInstall = ''
cat > $out/bin/nom-build << EOF
#!${runtimeShell}
${expect}/bin/unbuffer nix-build "\$@" 2>&1 | exec $out/bin/nom
EOF
chmod a+x $out/bin/nom-build
'';
homepage = "https://github.com/maralorn/nix-output-monitor";
description = "Parses output of nix-build to show additional information";
2021-01-15 10:19:50 +01:00
license = lib.licenses.agpl3Plus;
maintainers = [ lib.maintainers.maralorn ];
}