Summary Files Commits Branches @commit @diff @stats
path: root / packages / openbox-blocks-dark / default.nix
blob: 1105b577119d527d243b6e730c33f29c2f04257f (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
{ lib, stdenvNoCC, fetchgit, ... }:
stdenvNoCC.mkDerivation rec {
  pname = "openbox-blocks-dark";
  version = "1.0.0";

  src = fetchgit {
    url = "https://git.syndamia.com/conf/openbox-blocks-dark";
    rev = "d9e87f8c4494f1768d61c3f46ecfb136b6f168e4";
    sha256 = "sha256-ASeTBTCcTrVgqy/6MYfyiBMh4/CW5z4epPpQPuzNwMw=";
  };

  patchPhase = ''
    sed -i '/window.handle.width/{
      s/0/4/
      a\
      window.*.handle.bg: Raised Solid
      a\
      window.*.handle.bg.color: #3a4042
      a\
      window.*.grip.bg: Parentrelative
    }' ./Blocks-Dark/openbox-3/themerc
  '';

  dontBuild = true;

  installPhase = ''
    mkdir -p $out/share/themes
    mv Blocks-Dark $out/share/themes
  '';

  meta = with lib; {
    description = "A dark version of the \"Blocks\" theme found on github.com/addy-dclxvi/openbox-theme-collections";
    homepage = "https://git.syndamia.com/conf/openbox-blocks-dark";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ syndamia ];
  };
}