Add displayselect from Luke Smith's dotfiles
This commit is contained in:
parent
d1cbdf3bb4
commit
6585022138
4 changed files with 45 additions and 0 deletions
31
nix/pkgs/displayselect/default.nix
Normal file
31
nix/pkgs/displayselect/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "displayselect";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lukesmithxyz";
|
||||
repo = "voidrice";
|
||||
rev = "master";
|
||||
sha256 = "BybEijy1zH+UNyCgWnenmcazwE8B3PXGc+Cl0FO/n3o=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
bash
|
||||
bc
|
||||
xorg.xrandr
|
||||
];
|
||||
|
||||
patches = [
|
||||
./remove-setbg.patch
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp .local/bin/displayselect $out/bin
|
||||
chmod +x $out/bin/displayselect
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue