···1# This file has been autogenerate with cabal2nix.
2# Update via ./update.sh"
3+{ mkDerivation, ansi-terminal, async, attoparsec, base, bytestring
4+, cassava, containers, data-default, directory, extra, fetchzip
5+, filepath, hermes-json, HUnit, lib, lock-file, MemoTrie
6+, nix-derivation, optics, random, relude, safe, stm, streamly-core
7+, strict, strict-types, terminal-size, text, time, transformers
8+, typed-process, unix, word8
000000000000000000000000000009}:
10mkDerivation {
11 pname = "nix-output-monitor";
12+ version = "2.1.1";
13 src = fetchzip {
14+ url = "https://code.maralorn.de/maralorn/nix-output-monitor/archive/v2.1.1.tar.gz";
15+ sha256 = "1k1gdx7yczz7xm096i8lk09zq6yw1yj8izx6czymfd4qqwj2y49l";
16 };
17 isLibrary = true;
18 isExecutable = true;
19 libraryHaskellDepends = [
20+ ansi-terminal async attoparsec base bytestring cassava containers
21+ data-default directory extra filepath hermes-json lock-file
22+ MemoTrie nix-derivation optics relude safe stm streamly-core strict
23+ strict-types terminal-size text time transformers word8
00000000000000000000000024 ];
25 executableHaskellDepends = [
26+ ansi-terminal async attoparsec base bytestring cassava containers
27+ data-default directory extra filepath hermes-json lock-file
28+ MemoTrie nix-derivation optics relude safe stm streamly-core strict
29+ strict-types terminal-size text time transformers typed-process
30+ unix word8
00000000000000000000000031 ];
32 testHaskellDepends = [
33+ ansi-terminal async attoparsec base bytestring cassava containers
34+ data-default directory extra filepath hermes-json HUnit lock-file
35+ MemoTrie nix-derivation optics random relude safe stm streamly-core
36+ strict strict-types terminal-size text time transformers
37+ typed-process word8
0000000000000000000000000038 ];
39 homepage = "https://github.com/maralorn/nix-output-monitor";
40+ description = "Processes output of Nix commands to show helpful and pretty information";
41 license = lib.licenses.agpl3Plus;
42 mainProgram = "nom";
43+ maintainers = [ lib.maintainers.maralorn ];
44}
+3-5
pkgs/tools/nix/nix-output-monitor/update.sh
···1#!/usr/bin/env nix-shell
2-#!nix-shell -i bash -p cabal2nix curl jq alejandra
3#
4# This script will update the nix-output-monitor derivation to the latest version using
5# cabal2nix.
···12derivation_file="${script_dir}/generated-package.nix"
1314# This is the latest released version of nix-output-monitor on GitHub.
15-new_version=$(curl --silent "https://api.github.com/repos/maralorn/nix-output-monitor/releases" | jq '.[0].tag_name' --raw-output)
1617echo "Updating nix-output-monitor to version $new_version."
18echo "Running cabal2nix and outputting to ${derivation_file}..."
···2425cabal2nix \
26 --maintainer maralorn \
27- "https://github.com/maralorn/nix-output-monitor/archive/refs/tags/${new_version}.tar.gz" \
28 >> "$derivation_file"
29-30-alejandra "${derivation_file}" | cat
3132echo "Finished."
···1#!/usr/bin/env nix-shell
2+#!nix-shell -i bash -p cabal2nix curl jq
3#
4# This script will update the nix-output-monitor derivation to the latest version using
5# cabal2nix.
···12derivation_file="${script_dir}/generated-package.nix"
1314# This is the latest released version of nix-output-monitor on GitHub.
15+new_version=$(curl --silent "https://code.maralorn.de/api/v1/repos/maralorn/nix-output-monitor/releases" | jq '.[0].tag_name' --raw-output)
1617echo "Updating nix-output-monitor to version $new_version."
18echo "Running cabal2nix and outputting to ${derivation_file}..."
···2425cabal2nix \
26 --maintainer maralorn \
27+ "https://code.maralorn.de/maralorn/nix-output-monitor/archive/${new_version}.tar.gz" \
28 >> "$derivation_file"
002930echo "Finished."