nix-config/pkgs/displayselect/default.nix

31 lines
567 B
Nix
Raw Normal View History

{ pkgs, ... }:
with pkgs;
stdenv.mkDerivation {
pname = "displayselect";
2025-04-23 16:12:10 +01:00
version = "unstable-2024-05-11";
src = fetchFromGitHub {
owner = "lukesmithxyz";
repo = "voidrice";
2025-04-23 16:12:10 +01:00
rev = "97687287bdfd332398b82a196b5f1feaec73f1d7";
2025-04-21 11:12:29 +01:00
sha256 = "sha256-9U1Do0w2oT5E6uZxSKoHAzbGbSLQRQlT65KcPGzwhW8=";
};
buildInputs = [
bash
xorg.xrandr
];
2025-03-17 23:05:33 +00:00
patches = [ ./scaling.patch ];
installPhase = ''
mkdir -p $out/bin
cp .local/bin/displayselect $out/bin
chmod +x $out/bin/displayselect
'';
2025-03-17 23:05:33 +00:00
meta.mainProgram = "displayselect";
}