aboutsummaryrefslogtreecommitdiff
path: root/pkgs
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 /pkgs
parent63d94ee80a4ec37c1584f6bd4a5bd5c150c45938 (diff)
downloadNix-033bd2b4f705ac52b2ee9d782da30ae9f74e0004.tar.gz
Nix-033bd2b4f705ac52b2ee9d782da30ae9f74e0004.tar.zst
Nix-033bd2b4f705ac52b2ee9d782da30ae9f74e0004.zip
Add new tools
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/nb/default.nix20
2 files changed, 21 insertions, 0 deletions
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}