tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
moka-icon-theme: build GTK icon cache
Yegor Timoshenko
8 years ago
cc3bd765
c087641f
+7
-7
1 changed file
expand all
collapse all
unified
split
pkgs
data
icons
moka-icon-theme
default.nix
+7
-7
pkgs/data/icons/moka-icon-theme/default.nix
···
1
-
{ stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme }:
2
3
stdenv.mkDerivation rec {
4
-
name = "${package-name}-${version}";
5
-
package-name = "moka-icon-theme";
6
version = "5.3.6";
7
8
src = fetchFromGitHub {
9
owner = "snwh";
10
-
repo = package-name;
11
rev = "v${version}";
12
sha256 = "17f8k8z8xvib4hkxq0cw9j7bhdpqpv5frrkyc4sbyildcbavzzbr";
13
};
14
15
-
nativeBuildInputs = [ autoreconfHook ];
16
-
17
-
buildInputs = [ faba-icon-theme ];
18
19
postPatch = ''
20
substituteInPlace Makefile.am --replace '$(DESTDIR)'/usr $out
21
'';
0
0
22
23
meta = with stdenv.lib; {
24
description = "An icon theme designed with a minimal flat style using simple geometry and bright colours";
···
1
+
{ stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme, gtk3 }:
2
3
stdenv.mkDerivation rec {
4
+
name = "${pname}-${version}";
5
+
pname = "moka-icon-theme";
6
version = "5.3.6";
7
8
src = fetchFromGitHub {
9
owner = "snwh";
10
+
repo = pname;
11
rev = "v${version}";
12
sha256 = "17f8k8z8xvib4hkxq0cw9j7bhdpqpv5frrkyc4sbyildcbavzzbr";
13
};
14
15
+
nativeBuildInputs = [ autoreconfHook faba-icon-theme gtk3 ];
0
0
16
17
postPatch = ''
18
substituteInPlace Makefile.am --replace '$(DESTDIR)'/usr $out
19
'';
20
+
21
+
postFixup = "gtk-update-icon-cache $out/share/icons/Moka";
22
23
meta = with stdenv.lib; {
24
description = "An icon theme designed with a minimal flat style using simple geometry and bright colours";