about summary refs log tree commit diff
path: root/machines/profpatsch/pkgs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/profpatsch/pkgs.nix')
-rw-r--r--machines/profpatsch/pkgs.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix
new file mode 100644
index 00000000..98a7988c
--- /dev/null
+++ b/machines/profpatsch/pkgs.nix
@@ -0,0 +1,44 @@
+{ pkgs, lib, myLib }:
+
+let
+
+  mpv = pkgs.mpv-with-scripts.override {
+    scripts = [ pkgs.mpvScripts.convert ];
+  };
+
+  beets = pkgs.beets.override { enableAlternatives = true; };
+
+  vim = pkgs.vim_configurable;
+
+  fast-init = pkgs.haskellPackages.callPackage (import "${(pkgs.fetchFromGitHub {
+    owner = "Profpatsch";
+    repo = "fast-init";
+    # TODO fix version
+    rev = "master";
+    sha256 = "03006xzs250knzcyr6j564kn9jf2a6cp3mxkpqsqmmyp6v28w90z";
+  })}/overrides.nix") {};
+
+  pyrnotify =
+    let src = pkgs.fetchFromGitHub {
+          owner = "arnottcr";
+          repo = "weechat-pyrnotify";
+          rev = "5063ba19b5ba7ba3d4ecb2a76ad9e4b7bf89964b";
+          sha256 = "0r07glz7hkmcnp2vl4dy24i9vfsa9shm7k4q0jb47881z0y2dm2p";
+        };
+        notify-send = "${pkgs.libnotify.overrideAttrs (old: {
+          patches = old.patches or [] ++ [ ./patches/libnotify.patch ];
+        })}/bin/notify-send";
+    in pkgs.runCommandLocal "pyrnotify.py" {} ''
+      substitute "${src}/pyrnotify.py" $out \
+        --replace 'notify-send' '${notify-send}'
+    '';
+
+in
+{ inherit
+    mpv
+    beets
+    vim
+    # fast-init
+    pyrnotify
+    ;
+}