mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
32ee88e2d1
This package had the same issue as described in issue #15744. The custom
installPhase doesn't call pre- and post-install hooks like it should.
The solution is also similar (see commit a1facf3
).
34 lines
830 B
Nix
34 lines
830 B
Nix
{ fetchurl, stdenv, fetchgit, qtbase, qtx11extras, qmakeHook, pkgconfig, boost }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "twmn-git-2014-09-23";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/sboli/twmn.git";
|
|
rev = "9492a47e25547e602dd57efd807033677c90b150";
|
|
sha256 = "1a68gka9gyxyzhc9rn8df59rzcdwkjw90cxp1kk0rdfp6svhxhsa";
|
|
};
|
|
|
|
buildInputs = [ qtbase qtx11extras pkgconfig boost qmakeHook ];
|
|
|
|
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 stdenv.lib.platforms; linux;
|
|
maintainers = [ stdenv.lib.maintainers.matejc ];
|
|
};
|
|
}
|