2020-10-11 12:50:04 +00:00
|
|
|
{ mkDerivation, ansi-terminal, async, attoparsec, base, containers
|
2021-02-22 21:28:39 +00:00
|
|
|
, cassava, directory, HUnit, mtl, nix-derivation, process, relude, lib
|
|
|
|
, stm, terminal-size, text, time, unix, wcwidth, fetchFromGitHub
|
2021-03-09 03:18:52 +00:00
|
|
|
, lock-file, data-default, expect, runtimeShell
|
2020-10-11 12:50:04 +00:00
|
|
|
}:
|
2021-03-09 03:18:52 +00:00
|
|
|
mkDerivation rec {
|
2020-10-11 12:50:04 +00:00
|
|
|
pname = "nix-output-monitor";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.0.3.2";
|
2020-10-11 12:50:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maralorn";
|
|
|
|
repo = "nix-output-monitor";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "0srfclmqrqcx8b756yxww24ya0xn2ajxbgj07mcvdvwbwl09pys8";
|
2021-03-09 03:18:52 +00:00
|
|
|
rev = "v${version}";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
|
|
|
libraryHaskellDepends = [
|
2021-02-22 21:28:39 +00:00
|
|
|
ansi-terminal async attoparsec base cassava containers directory mtl
|
2021-03-09 03:18:52 +00:00
|
|
|
nix-derivation relude stm terminal-size text time unix wcwidth lock-file
|
|
|
|
data-default
|
2020-10-11 12:50:04 +00:00
|
|
|
];
|
|
|
|
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
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
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
|
|
|
|
'';
|
2020-10-11 12:50:04 +00:00
|
|
|
homepage = "https://github.com/maralorn/nix-output-monitor";
|
|
|
|
description = "Parses output of nix-build to show additional information";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.maralorn ];
|
2020-10-11 12:50:04 +00:00
|
|
|
}
|