@@ -1,164 +1,23 @@
1−# This file has been autogenerate with cabal2nix.
2−# Update via ./update.sh"
31{
4− mkDerivation,
5− ansi-terminal,
6− async,
7− attoparsec,
8− base,
9− bytestring,
10− cassava,
11− containers,
12− data-default,
13− directory,
2+ haskell,
143 expect,
15− extra,
16− fetchzip,
17− filepath,
18− generic-optics,
19− HUnit,
4+ haskellPackages,
205 installShellFiles,
21− lib,
22− lock-file,
23− MemoTrie,
24− mtl,
25− nix-derivation,
26− optics,
27− process,
28− random,
29− relude,
30− runtimeShell,
31− safe,
32− stm,
33− streamly,
34− terminal-size,
35− text,
36− time,
37− unix,
38− vector,
39− wcwidth,
40− word8,
41−}:
42−mkDerivation {
43− pname = "nix-output-monitor";
44− version = "1.1.2.0";
45− src = fetchzip {
46− url = "https://github.com/maralorn/nix-output-monitor/archive/refs/tags/v1.1.2.0.tar.gz";
47− sha256 = "03qhy4xzika41pxlmvpz3psgy54va72ipn9v1lv33l6369ikrhl1";
6+}: let
7+ inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
8+ overrides = {
9+ passthru.updateScript = ./update.sh;
10+ testTarget = "unit-tests";
11+ buildTools = [installShellFiles];
12+ postInstall = ''
13+ substitute "exe-sh/nom-build" "$out/bin/nom-build" \
14+ --replace 'unbuffer' '${expect}/bin/unbuffer' \
15+ --replace 'nom' "$out/bin/nom"
16+ chmod a+x $out/bin/nom-build
17+ installShellCompletion --zsh --name _nom-build completions/completion.zsh
18+ '';
4819 };
49− isLibrary = true;
50− isExecutable = true;
51− libraryHaskellDepends = [
52− ansi-terminal
53− async
54− attoparsec
55− base
56− bytestring
57− cassava
58− containers
59− data-default
60− directory
61− extra
62− filepath
63− generic-optics
64− lock-file
65− MemoTrie
66− mtl
67− nix-derivation
68− optics
69− random
70− relude
71− safe
72− stm
73− streamly
74− terminal-size
75− text
76− time
77− unix
78− vector
79− wcwidth
80− word8
81− ];
82− executableHaskellDepends = [
83− ansi-terminal
84− async
85− attoparsec
86− base
87− bytestring
88− cassava
89− containers
90− data-default
91− directory
92− extra
93− filepath
94− generic-optics
95− lock-file
96− MemoTrie
97− mtl
98− nix-derivation
99− optics
100− random
101− relude
102− safe
103− stm
104− streamly
105− terminal-size
106− text
107− time
108− unix
109− vector
110− wcwidth
111− word8
112− ];
113− testHaskellDepends = [
114− ansi-terminal
115− async
116− attoparsec
117− base
118− bytestring
119− cassava
120− containers
121− data-default
122− directory
123− extra
124− filepath
125− generic-optics
126− HUnit
127− lock-file
128− MemoTrie
129− mtl
130− nix-derivation
131− optics
132− process
133− random
134− relude
135− safe
136− stm
137− streamly
138− terminal-size
139− text
140− time
141− unix
142− vector
143− wcwidth
144− word8
145− ];
146− homepage = "https://github.com/maralorn/nix-output-monitor";
147− description = "Parses output of nix-build to show additional information";
148− license = lib.licenses.agpl3Plus;
149− maintainers = with lib.maintainers; [maralorn];
150− passthru.updateScript = ./update.sh;
151− testTarget = "unit-tests";
152− buildTools = [installShellFiles];
153− postInstall = ''
154− cat > $out/bin/nom-build << EOF
155− #!${runtimeShell}
156− ${expect}/bin/unbuffer nix-build "\$@" 2>&1 | exec $out/bin/nom
157− EOF
158− chmod a+x $out/bin/nom-build
159− installShellCompletion --zsh --name _nom-build ${builtins.toFile "completion.zsh" ''
160− #compdef nom-build
161− compdef nom-build=nix-build
162− ''}
163− '';
164−}
20+in
21+ justStaticExecutables
22+ (overrideCabal overrides
23+ (haskellPackages.callPackage ./generated-package.nix {}))