depot/third_party/nixpkgs/pkgs/applications/window-managers/xmonad/xmonadctl.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

25 lines
730 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";
mainProgram = "xmonadctl";
homepage = "https://github.com/xmonad/xmonad-contrib";
license = licenses.bsd3;
maintainers = [ maintainers.ajgrf ];
};
}