]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add neomutt and nagnu
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 24 Dec 2018 12:32:20 +0000 (13:32 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 24 Dec 2018 12:32:20 +0000 (13:32 +0100)
default.nix
fetched/nagnu.json [new file with mode: 0644]

index fc7d1ff5170db708c85457528441effce8802564..61b5d25504d376414dec2c48e6e432ad0ca72bce 100644 (file)
@@ -238,6 +238,25 @@ let
       patches = [];
     }
   );
+
+  mypkgs.neomutt = neomutt.overrideAttrs (old:
+    rec {
+      buildInputs = old.buildInputs ++ [ gdbm ];
+      configureFlags = old.configureFlags ++ [ "--gdbm" ];
+    }
+  );
+
+  # mypkgs.nagnu = stdenv.mkDerivation (fetchedGithub ./fetched/nagnu.json // rec {
+  #   buildInputs = [ ncurses curl ];
+  #   installPhase = ''
+  #     mkdir -p $out/bin
+  #     cp nagnu $out/bin
+  #     mkdir -p $out/share/doc/nagnu
+  #     cp nagnu.conf.sample $out/share/doc/nagnu
+  #     mkdir -p $out/share/man/man8
+  #     cp docs/nagnu.8 $out/share/man/man8
+  #     '';
+  # });
 # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
 # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
 in
@@ -276,6 +295,7 @@ in
     inherit iotop iperf;
     inherit keybase;
     inherit bogofilter;
+    inherit mtr;
     # todo: lx* ?, unrar, unzip, zeromq?
     #inherit nextcloud-client;
     #inherit nixos;
diff --git a/fetched/nagnu.json b/fetched/nagnu.json
new file mode 100644 (file)
index 0000000..60a8b07
--- /dev/null
@@ -0,0 +1,15 @@
+{
+  "tag": "c7e65fc-master",
+  "meta": {
+    "name": "nagnu",
+    "url": "https://github.com/frlen/nagnu",
+    "branch": "master"
+  },
+  "github": {
+    "owner": "frlen",
+    "repo": "nagnu",
+    "rev": "c7e65fc02f46a3756a4cc47953ea2f3e57a84728",
+    "sha256": "1i2jm8ibvqcc734daamnzc3hx8q0nsry1x12q0kr5yvcsdjjgyy3",
+    "fetchSubmodules": true
+  }
+}