2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libX11 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "wmname";
|
|
|
|
version = "0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://dl.suckless.org/tools/wmname-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace "@strip" "#@strip"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
makeFlags = [ "CC:=$(CC)" ];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Prints or set the window manager name property of the root window";
|
|
|
|
homepage = "https://tools.suckless.org/wmname";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "wmname";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|