nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, mkDerivation, fetchFromGitHub, qtbase, qtx11extras, qmake, pkg-config, boost }:
2
3mkDerivation {
4 pname = "twmn";
5 version = "unstable-2018-10-01";
6
7 src = fetchFromGitHub {
8 owner = "sboli";
9 repo = "twmn";
10 rev = "80f48834ef1a07087505b82358308ee2374b6dfb";
11 sha256 = "0mpjvp800x07lp9i3hfcc5f4bqj1fj4w3dyr0zwaxc6wqmm0fdqz";
12 };
13
14 nativeBuildInputs = [ pkg-config qmake ];
15 buildInputs = [ qtbase qtx11extras boost ];
16
17 postPatch = ''
18 sed -i s/-Werror// twmnd/twmnd.pro
19 '';
20
21 installPhase = ''
22 runHook preInstall
23
24 mkdir -p "$out/bin"
25 cp bin/* "$out/bin"
26
27 runHook postInstall
28 '';
29
30 meta = {
31 description = "A notification system for tiling window managers";
32 homepage = "https://github.com/sboli/twmn";
33 platforms = with lib.platforms; linux;
34 maintainers = [ lib.maintainers.matejc ];
35 license = lib.licenses.lgpl3;
36 };
37}