c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
24 lines
699 B
Nix
24 lines
699 B
Nix
{ stdenv, lib, fetchFromGitHub, ghcWithPackages, haskellPackages, ... }:
|
|
|
|
let xmonadctlEnv = ghcWithPackages (self: [ self.xmonad-contrib self.X11 ]);
|
|
in stdenv.mkDerivation rec {
|
|
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";
|
|
homepage = "https://github.com/xmonad/xmonad-contrib";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.ajgrf ];
|
|
};
|
|
}
|