2025-03-06 01:12:32 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "displayselect";
|
2025-04-23 16:12:10 +01:00
|
|
|
version = "unstable-2024-05-11";
|
2025-03-06 01:12:32 +00:00
|
|
|
|
|
|
|
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=";
|
2025-03-06 01:12:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bash
|
|
|
|
xorg.xrandr
|
|
|
|
];
|
|
|
|
|
2025-03-17 23:05:33 +00:00
|
|
|
patches = [ ./scaling.patch ];
|
|
|
|
|
2025-03-06 01:12:32 +00:00
|
|
|
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";
|
2025-03-06 01:12:32 +00:00
|
|
|
}
|