nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 851 B view raw
1{ 2 stdenv, 3 lib, 4 libx11, 5 fetchFromGitHub, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "x-create-mouse-void"; 10 version = "0.1"; 11 12 src = fetchFromGitHub { 13 owner = "cas--"; 14 repo = "XCreateMouseVoid"; 15 rev = version; 16 sha256 = "151pv4gmzz9g6nd1xw94hmawlb5z8rgs1jb3x1zpvn3znd7f355c"; 17 }; 18 19 buildInputs = [ libx11 ]; 20 21 installPhase = '' 22 runHook preInstall 23 mkdir -pv $out/bin 24 cp -a XCreateMouseVoid $out/bin/x-create-mouse-void 25 runHook postInstall 26 ''; 27 28 meta = { 29 homepage = "https://github.com/cas--/XCreateMouseVoid"; 30 description = "Creates an undecorated black window and prevents the mouse from entering that window"; 31 platforms = lib.platforms.unix; 32 license = lib.licenses.unfreeRedistributable; 33 maintainers = with lib.maintainers; [ eigengrau ]; 34 mainProgram = "x-create-mouse-void"; 35 }; 36}