2015-03-08 16:36:37 +01:00
|
|
|
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages }:
|
2015-02-02 23:05:23 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
xmonadEnv = ghcWithPackages (self: [ self.xmonad ] ++ packages self);
|
2015-03-08 16:36:37 +01:00
|
|
|
in stdenv.mkDerivation {
|
2018-07-19 21:51:35 +02:00
|
|
|
name = "xmonad-with-packages-${xmonadEnv.version}";
|
2015-02-02 23:05:23 +01:00
|
|
|
|
2015-03-08 16:36:37 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-02-02 23:05:23 +01:00
|
|
|
|
2015-03-08 16:36:37 +01:00
|
|
|
buildCommand = ''
|
2019-05-04 16:44:12 +02:00
|
|
|
install -D ${xmonadEnv}/share/man/man1/xmonad.1.gz $out/share/man/man1/xmonad.1.gz
|
2015-03-08 16:36:37 +01:00
|
|
|
makeWrapper ${xmonadEnv}/bin/xmonad $out/bin/xmonad \
|
|
|
|
--set NIX_GHC "${xmonadEnv}/bin/ghc" \
|
2015-02-02 23:05:23 +01:00
|
|
|
--set XMONAD_XMESSAGE "${xmessage}/bin/xmessage"
|
|
|
|
'';
|
2015-09-01 09:42:08 +02:00
|
|
|
|
|
|
|
# trivial derivation
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
2015-03-08 16:36:37 +01:00
|
|
|
}
|