nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 743 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libX11, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "wmname"; 10 version = "0.1"; 11 12 src = fetchurl { 13 url = "https://dl.suckless.org/tools/wmname-${finalAttrs.version}.tar.gz"; 14 sha256 = "559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5"; 15 }; 16 17 postPatch = '' 18 substituteInPlace Makefile --replace "@strip" "#@strip" 19 ''; 20 21 buildInputs = [ libX11 ]; 22 23 makeFlags = [ "CC:=$(CC)" ]; 24 25 installFlags = [ "PREFIX=$(out)" ]; 26 27 meta = { 28 description = "Prints or set the window manager name property of the root window"; 29 homepage = "https://tools.suckless.org/wmname"; 30 license = lib.licenses.mit; 31 platforms = lib.platforms.unix; 32 mainProgram = "wmname"; 33 }; 34})