3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/xmonad/wrapper.nix

22 lines
603 B
Nix
Raw Normal View History

2015-03-08 15:36:37 +00:00
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages }:
let
xmonadEnv = ghcWithPackages (self: [ self.xmonad ] ++ packages self);
2015-03-08 15:36:37 +00:00
in stdenv.mkDerivation {
2018-07-19 20:51:35 +01:00
name = "xmonad-with-packages-${xmonadEnv.version}";
2015-03-08 15:36:37 +00:00
nativeBuildInputs = [ makeWrapper ];
2015-03-08 15:36:37 +00:00
buildCommand = ''
mkdir -p $out/bin $out/share
ln -s ${xmonadEnv}/share/man $out/share/man
2015-03-08 15:36:37 +00:00
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;
2015-03-08 15:36:37 +00:00
}