lol
1{ fetchurl, stdenv, fetchgit, qtbase, qtx11extras, qmake, pkgconfig, boost }:
2
3stdenv.mkDerivation rec {
4 name = "twmn-git-2014-09-23";
5
6 src = fetchgit {
7 url = "https://github.com/sboli/twmn.git";
8 rev = "9492a47e25547e602dd57efd807033677c90b150";
9 sha256 = "1a68gka9gyxyzhc9rn8df59rzcdwkjw90cxp1kk0rdfp6svhxhsa";
10 };
11
12 nativeBuildInputs = [ pkgconfig qmake ];
13 buildInputs = [ qtbase qtx11extras boost ];
14
15 postPatch = ''
16 sed -i s/-Werror// twmnd/twmnd.pro
17 '';
18
19 installPhase = ''
20 runHook preInstall
21
22 mkdir -p "$out/bin"
23 cp bin/* "$out/bin"
24
25 runHook postInstall
26 '';
27
28 meta = {
29 description = "A notification system for tiling window managers";
30 homepage = https://github.com/sboli/twmn;
31 platforms = with stdenv.lib.platforms; linux;
32 maintainers = [ stdenv.lib.maintainers.matejc ];
33 };
34}