2021-01-17 02:09:27 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qtbase, qtx11extras, qmake, pkg-config, boost }:
|
2014-01-04 00:28:24 +00:00
|
|
|
|
2019-11-07 13:16:54 +00:00
|
|
|
mkDerivation {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "twmn";
|
|
|
|
version = "unstable-2018-10-01";
|
2014-01-04 00:28:24 +00:00
|
|
|
|
2019-02-16 21:30:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sboli";
|
|
|
|
repo = "twmn";
|
|
|
|
rev = "80f48834ef1a07087505b82358308ee2374b6dfb";
|
|
|
|
sha256 = "0mpjvp800x07lp9i3hfcc5f4bqj1fj4w3dyr0zwaxc6wqmm0fdqz";
|
2014-01-04 00:28:24 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config qmake ];
|
2017-06-02 16:40:19 +01:00
|
|
|
buildInputs = [ qtbase qtx11extras boost ];
|
2014-01-04 00:28:24 +00:00
|
|
|
|
2016-04-16 20:59:18 +01:00
|
|
|
postPatch = ''
|
2015-02-16 23:23:33 +00:00
|
|
|
sed -i s/-Werror// twmnd/twmnd.pro
|
|
|
|
'';
|
2014-01-04 00:28:24 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2016-08-29 19:33:10 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2014-01-04 00:28:24 +00:00
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp bin/* "$out/bin"
|
2016-08-29 19:33:10 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2014-01-04 00:28:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-02-22 16:59:22 +00:00
|
|
|
description = "A notification system for tiling window managers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sboli/twmn";
|
2019-11-07 13:16:54 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
|
|
|
maintainers = [ lib.maintainers.matejc ];
|
|
|
|
license = lib.licenses.lgpl3;
|
2014-01-04 00:28:24 +00:00
|
|
|
};
|
|
|
|
}
|