diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/twmn')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/twmn/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/twmn/default.nix b/nixpkgs/pkgs/applications/misc/twmn/default.nix new file mode 100644 index 000000000000..b7974966be45 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/twmn/default.nix @@ -0,0 +1,36 @@ +{ lib, mkDerivation, fetchFromGitHub, qtbase, qtx11extras, qmake, pkg-config, boost }: + +mkDerivation { + name = "twmn-git-2018-10-01"; + + src = fetchFromGitHub { + owner = "sboli"; + repo = "twmn"; + rev = "80f48834ef1a07087505b82358308ee2374b6dfb"; + sha256 = "0mpjvp800x07lp9i3hfcc5f4bqj1fj4w3dyr0zwaxc6wqmm0fdqz"; + }; + + nativeBuildInputs = [ pkg-config qmake ]; + buildInputs = [ qtbase qtx11extras boost ]; + + postPatch = '' + sed -i s/-Werror// twmnd/twmnd.pro + ''; + + installPhase = '' + runHook preInstall + + mkdir -p "$out/bin" + cp bin/* "$out/bin" + + runHook postInstall + ''; + + meta = { + description = "A notification system for tiling window managers"; + homepage = "https://github.com/sboli/twmn"; + platforms = with lib.platforms; linux; + maintainers = [ lib.maintainers.matejc ]; + license = lib.licenses.lgpl3; + }; +} |