mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 06:12:58 +00:00
17 lines
444 B
Nix
17 lines
444 B
Nix
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages }:
|
|
|
|
let
|
|
xmonadEnv = ghcWithPackages (self: [ self.xmonad ] ++ packages self);
|
|
in stdenv.mkDerivation {
|
|
name = "xmonad-with-packages";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${xmonadEnv}/bin/xmonad $out/bin/xmonad \
|
|
--set NIX_GHC "${xmonadEnv}/bin/ghc" \
|
|
--set XMONAD_XMESSAGE "${xmessage}/bin/xmessage"
|
|
'';
|
|
}
|