about summary refs log tree commit diff
path: root/machines/profpatsch/pkgs.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-04-26 22:25:01 +0200
committerProfpatsch <mail@profpatsch.de>2017-04-26 22:32:31 +0200
commit83cde9698284e8f75ac046af8a65be9ae1a99d92 (patch)
tree79ce9cd789f0b95a62c260027e619b23961d6777 /machines/profpatsch/pkgs.nix
parent0f98e6789f3d1038e48a85ff9a9eebee3b80871c (diff)
machines/katara: add nix-gen and modified searx
Diffstat (limited to 'machines/profpatsch/pkgs.nix')
-rw-r--r--machines/profpatsch/pkgs.nix32
1 files changed, 18 insertions, 14 deletions
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix
index debed121..dac8745d 100644
--- a/machines/profpatsch/pkgs.nix
+++ b/machines/profpatsch/pkgs.nix
@@ -64,23 +64,27 @@ let
 
   xmpp-client = pkgs.callPackage (import ./xmpp-client.nix myLib.philip.home "irc/xmppOla.wtf") { inherit (pkgs) xmpp-client; };
 
-  pythonPackagesMod = pkgs.pythonPackages.override {
-    overrides = self: super: {
-      searx = super.searx.overrideAttrs (old: {
-        propagatedBuildInputs = old.propagatedBuildInputs ++ [ pythonPackages.pyxdg ];
-        patches = old.patches or [] ++ [
-          ./patches/searx-secret-key.patch
-          ./patches/searx-rm-soundcloud.patch
-        ];
-      });
-    };
-  };
-
+  searx = pkgs.pythonPackages.searx.overrideAttrs (old: {
+    propagatedBuildInputs = old.propagatedBuildInputs ++ [ pythonPackages.pyxdg ];
+    patches = old.patches or [] ++ [
+      ./patches/searx-secret-key.patch
+      ./patches/searx-rm-soundcloud.patch
+    ];
+  });
 
   # A ghci with some sane default packages in scope, & hoogle
   saneGhci = haskellPackages.ghcWithHoogle (h: with h; [ protolude pretty-show ]);
 
+  # not upstream-compatible yet
+  nix-gen = haskellPackages.mkDerivation {
+    pname = "nix-gen";
+    version = "0.0.1";
+    license = lib.licenses.gpl3;
+    isExecutable = true;
+    src = /home/philip/code/nix/nix-gen;
+    buildDepends = with haskellPackages; [ hnix ansi-wl-pprint protolude data-fix ];
+  };
+
 in
 { inherit taffybar sent mpv beets poezio vim
-  fast-init xmpp-client saneGhci;
-  inherit (pythonPackagesMod) searx; }
+          fast-init xmpp-client saneGhci nix-gen searx; }