2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages }:
|
|
|
|
|
|
|
|
let
|
|
|
|
xmonadEnv = ghcWithPackages (self: [ self.xmonad ] ++ packages self);
|
|
|
|
in stdenv.mkDerivation {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "xmonad-with-packages";
|
|
|
|
inherit (xmonadEnv) version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
install -D ${xmonadEnv}/share/man/man1/xmonad.1.gz $out/share/man/man1/xmonad.1.gz
|
|
|
|
makeWrapper ${xmonadEnv}/bin/xmonad $out/bin/xmonad \
|
|
|
|
--set NIX_GHC "${xmonadEnv}/bin/ghc" \
|
|
|
|
--set XMONAD_XMESSAGE "${xmessage}/bin/xmessage"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# trivial derivation
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
}
|