nixpkgs/pkgs/applications/window-managers/xmonad/wrapper.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
623 B
Nix
Raw Normal View History

2015-03-08 16:36:37 +01:00
{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages }:
let
xmonadEnv = ghcWithPackages (self: [ self.xmonad ] ++ packages self);
2015-03-08 16:36:37 +01:00
in stdenv.mkDerivation {
2022-03-07 12:37:20 +01:00
pname = "xmonad-with-packages";
inherit (xmonadEnv) version;
2015-03-08 16:36:37 +01:00
nativeBuildInputs = [ makeWrapper ];
2015-03-08 16:36:37 +01:00
buildCommand = ''
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 XMONAD_GHC "${xmonadEnv}/bin/ghc" \
--set XMONAD_XMESSAGE "${xmessage}/bin/xmessage"
'';
# trivial derivation
preferLocalBuild = true;
allowSubstitutes = false;
2015-03-08 16:36:37 +01:00
}