aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-12-15 02:13:36 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-12-15 02:13:36 +0100
commit033bd2b4f705ac52b2ee9d782da30ae9f74e0004 (patch)
treef35d5f333a80f54abc0019a4d14b0b1f2fba5ad8
parent63d94ee80a4ec37c1584f6bd4a5bd5c150c45938 (diff)
downloadNix-033bd2b4f705ac52b2ee9d782da30ae9f74e0004.tar.gz
Nix-033bd2b4f705ac52b2ee9d782da30ae9f74e0004.tar.zst
Nix-033bd2b4f705ac52b2ee9d782da30ae9f74e0004.zip
Add new tools
-rw-r--r--environments/immae-eu.nix6
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/nb/default.nix20
3 files changed, 24 insertions, 3 deletions
diff --git a/environments/immae-eu.nix b/environments/immae-eu.nix
index 4df42aa..147926b 100644
--- a/environments/immae-eu.nix
+++ b/environments/immae-eu.nix
@@ -59,7 +59,7 @@ let
59 # nagnu 59 # nagnu
60 60
61 # messaging/forums/news 61 # messaging/forums/news
62 #flrn slrn 62 flrn slrn
63 telegram-cli telegram-history-dump telegramircd 63 telegram-cli telegram-history-dump telegramircd
64 weechat profanity 64 weechat profanity
65 newsboat irssi 65 newsboat irssi
@@ -75,7 +75,7 @@ let
75 # (nixos {}).manual.manpages 75 # (nixos {}).manual.manpages
76 76
77 # note taking 77 # note taking
78 note terminal-velocity jrnl doing 78 note terminal-velocity jrnl doing nb
79 79
80 # office 80 # office
81 sc-im ranger 81 sc-im ranger
@@ -119,7 +119,7 @@ let
119 telnet bind.dnsutils httpie ngrep nmap p0f socat lsof psmisc 119 telnet bind.dnsutils httpie ngrep nmap p0f socat lsof psmisc
120 wget patchelf rename tmux (lib.meta.hiPrio nettools) 120 wget patchelf rename tmux (lib.meta.hiPrio nettools)
121 vlock mosh manpages openssl openssl.doc openssl.man 121 vlock mosh manpages openssl openssl.doc openssl.man
122 sshfs 122 sshfs ncdu
123 123
124 # other tools 124 # other tools
125 pgloader s3cmd lftp jq cpulimit libxslt gandi-cli 125 pgloader s3cmd lftp jq cpulimit libxslt gandi-cli
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 4b3d4b3..b260f97 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -17,6 +17,7 @@ rec {
17 mutt-ics = callPackage ./mutt-ics { inherit mylibs; }; 17 mutt-ics = callPackage ./mutt-ics { inherit mylibs; };
18 nagios-cli = callPackage ./nagios-cli { inherit mylibs; }; 18 nagios-cli = callPackage ./nagios-cli { inherit mylibs; };
19 nagnu = callPackage ./nagnu { inherit mylibs; }; 19 nagnu = callPackage ./nagnu { inherit mylibs; };
20 nb = callPackage ./nb {};
20 note = callPackage ./note {}; 21 note = callPackage ./note {};
21 notmuch-python2 = callPackage ./notmuch/notmuch-python { pythonPackages = python2Packages; }; 22 notmuch-python2 = callPackage ./notmuch/notmuch-python { pythonPackages = python2Packages; };
22 notmuch-python3 = callPackage ./notmuch/notmuch-python { pythonPackages = python3Packages; }; 23 notmuch-python3 = callPackage ./notmuch/notmuch-python { pythonPackages = python3Packages; };
diff --git a/pkgs/nb/default.nix b/pkgs/nb/default.nix
new file mode 100644
index 0000000..37cc89f
--- /dev/null
+++ b/pkgs/nb/default.nix
@@ -0,0 +1,20 @@
1{ pkgs ? import <nixpkgs> {} }: with pkgs;
2stdenv.mkDerivation {
3 pname = "nb";
4 version = "e0d4e24-master";
5 src = fetchFromGitHub {
6 owner = "xwmx";
7 repo = "nb";
8 rev = "e0d4e24201299916d736be6a9800793cec32927e";
9 sha256 = "0gpnlzxjlfn3bagw74lsrmfhxj2xzvk6sjj24wp9rjpk42d9mfml";
10 };
11 phases = "installPhase";
12 installPhase = ''
13 mkdir -p $out/bin $out/share/zsh/vendor-completions $out/share/bash-completion/completions
14 cp $src/nb $out/bin/nb
15 chmod +x $out/bin/nb
16 patchShebangs $out/bin/nb
17 cp $src/etc/nb-completion.zsh $out/share/zsh/vendor-completions/_nb
18 cp $src/etc/nb-completion.bash $out/share/bash-completion/completions/nb
19 '';
20}