about summary refs log tree commit diff
path: root/pkgs/larbs-scripts/displayselect/wrapper.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 23:21:23 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 23:21:23 +0200
commitba13c42ba85ac3973bbe77a8aa119a11083cb26c (patch)
tree1959f956386b6056ffbd4586e73747793cda2081 /pkgs/larbs-scripts/displayselect/wrapper.nix
parent94494f352bbcfee518d620514ed3217dab6e6e84 (diff)
downloadpnpkgs-ba13c42ba85ac3973bbe77a8aa119a11083cb26c.tar.gz
pnpkgs-ba13c42ba85ac3973bbe77a8aa119a11083cb26c.zip
Add full larbs-scripts
Diffstat (limited to 'pkgs/larbs-scripts/displayselect/wrapper.nix')
-rw-r--r--pkgs/larbs-scripts/displayselect/wrapper.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/pkgs/larbs-scripts/displayselect/wrapper.nix b/pkgs/larbs-scripts/displayselect/wrapper.nix
deleted file mode 100644
index bcc051b..0000000
--- a/pkgs/larbs-scripts/displayselect/wrapper.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ stdenv, buildEnv, callPackage, lib, xrandr, libnotify, arandr }:
-
-displayselect:
-
-let
-
-  mapCase = options:
-  builtins.concatStringsSep "\n"
-  (builtins.map
-  (option: "\t\"${option}\") ${builtins.getAttr option options} ;;")
-  (builtins.attrNames options));
-
-  wrapper = { moreOptions ? {} }:
-  let
-    dmenu = callPackage ../../larbs/dmenu { };
-  in
-  buildEnv {
-    name = "displayselect-env";
-
-    paths = [
-      xrandr
-      arandr
-      libnotify
-      dmenu
-    ];
-
-    postBuild = ''
-      mkdir -p $out/bin
-      cp ${displayselect}/bin/displayselect $out/bin
-      echo ${mapCase moreOptions} >> $out/bin/test
-    '';
-
-
-    meta = {
-      description = "A fancy monitor configuration menu.";
-      homepage = "https://github.com/LukeSmithXYZ/voidrice";
-    };
-  };
-in
-  lib.makeOverridable wrapper