From ba13c42ba85ac3973bbe77a8aa119a11083cb26c Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 5 Oct 2020 23:21:23 +0200 Subject: Add full larbs-scripts --- pkgs/larbs-scripts/displayselect/wrapper.nix | 40 ---------------------------- 1 file changed, 40 deletions(-) delete mode 100644 pkgs/larbs-scripts/displayselect/wrapper.nix (limited to 'pkgs/larbs-scripts/displayselect/wrapper.nix') 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 -- cgit 1.4.1