aboutsummaryrefslogtreecommitdiff
path: root/packages/xmonad/pkg.nix
blob: cf4aa04f24c67a3a0b3668605157f0fa55c542ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ pkgs
, lib
, stdenv
, ghc
, haskellPackages
}:
let
  xmobar_custom = haskellPackages.xmobar.overrideAttrs (
    _: {
      configureFlags = [
        "-fwith_xft"
        "-fwith_threaded"
        "-fwith_rtsopts"
        "-fwith_alsa"
        "-fwith_utf8"
        "-fwith_nl80211"
      ];
    }
  );
in
haskellPackages.mkDerivation rec {
  pname = "local-xmonad-${version}";
  version = "0.0.1";
  license = lib.licenses.mit;

  src = ./source;

  isLibrary = false;
  isExecutable = true;
  doHaddock = false;

  libraryHaskellDepends = with haskellPackages; [
    base
    containers
    extensible-exceptions
    parsec
    process
    X11
    xmonad
    xmonad-contrib

    xmobar_custom
  ];

  librarySystemDepends = with pkgs; [
    pkgs.pkgconfig
    xorg.libXext
    xorg.libXScrnSaver
    xorg.libXinerama
    xorg.libXrender
    xorg.libX11
    xorg.libXrandr
    xorg.libXft
    xorg.libXpm
    alsaLib
    wirelesstools
  ];
}