Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
731 B
Nix
37 lines
731 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
ghcWithPackages,
|
|
haskellPackages,
|
|
...
|
|
}:
|
|
|
|
let
|
|
xmonadctlEnv = ghcWithPackages (self: [
|
|
self.xmonad-contrib
|
|
self.X11
|
|
]);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "xmonadctl";
|
|
|
|
inherit (haskellPackages.xmonad-contrib) src version;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
${xmonadctlEnv}/bin/ghc -o $out/bin/xmonadctl \
|
|
--make scripts/xmonadctl.hs
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
platforms = platforms.unix;
|
|
description = "Send commands to a running instance of xmonad";
|
|
mainProgram = "xmonadctl";
|
|
homepage = "https://github.com/xmonad/xmonad-contrib";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.ajgrf ];
|
|
};
|
|
}
|