2022-10-07 16:06:01 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ghcWithPackages, haskellPackages, ... }:
|
2022-07-14 14:28:32 +02:00
|
|
|
|
|
|
|
let xmonadctlEnv = ghcWithPackages (self: [ self.xmonad-contrib self.X11 ]);
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "xmonadctl";
|
|
|
|
|
2022-10-07 16:06:01 +02:00
|
|
|
inherit (haskellPackages.xmonad-contrib) src version;
|
2022-07-14 14:28:32 +02:00
|
|
|
|
|
|
|
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";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "xmonadctl";
|
2022-07-14 14:28:32 +02:00
|
|
|
homepage = "https://github.com/xmonad/xmonad-contrib";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ajgrf ];
|
|
|
|
};
|
|
|
|
}
|