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

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

31 lines
824 B
Nix
Raw Normal View History

2022-07-14 12:28:32 +00:00
{ stdenv, lib, fetchFromGitHub, ghcWithPackages, ... }:
let xmonadctlEnv = ghcWithPackages (self: [ self.xmonad-contrib self.X11 ]);
in stdenv.mkDerivation rec {
pname = "xmonadctl";
version = "0.17.0";
src = fetchFromGitHub {
owner = "xmonad";
repo = "xmonad-contrib";
rev = "v${version}";
sha256 = "142ycg7dammq98drimv6xbih8dla9qindxds9fgkspmrrils3sar";
};
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 ];
};
}