2021-11-14 14:27:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, python3, faba-icon-theme, hicolor-icon-theme, jdupes }:
|
2016-06-10 14:25:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-24 11:12:37 +00:00
|
|
|
pname = "moka-icon-theme";
|
2021-11-14 14:24:45 +00:00
|
|
|
version = "unstable-2019-05-29";
|
2016-06-10 14:25:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-10-14 11:33:23 +01:00
|
|
|
owner = "snwh";
|
2018-02-24 11:12:37 +00:00
|
|
|
repo = pname;
|
2021-11-14 14:24:45 +00:00
|
|
|
rev = "c0355ea31e5cfdb6b44d8108f602d66817546a09";
|
|
|
|
sha256 = "0m4kfarkl94wdhsds2q1l9x5hfa9l3117l8j6j7qm7sf7yzr90c8";
|
2016-06-10 14:25:14 +01:00
|
|
|
};
|
|
|
|
|
2020-04-17 19:43:23 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gtk3
|
|
|
|
python3
|
2021-11-14 14:27:13 +00:00
|
|
|
jdupes
|
2020-04-17 19:43:23 +01:00
|
|
|
];
|
2016-06-10 14:25:14 +01:00
|
|
|
|
2019-09-12 15:47:48 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-04-17 19:43:23 +01:00
|
|
|
faba-icon-theme
|
2019-09-12 15:47:48 +01:00
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2021-11-14 14:27:13 +00:00
|
|
|
# These fixup steps are slow and unnecessary for this package
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontRewriteSymlinks = true;
|
|
|
|
|
2016-06-10 14:25:14 +01:00
|
|
|
postPatch = ''
|
2018-06-20 20:58:28 +01:00
|
|
|
patchShebangs meson/post_install.py
|
2016-06-10 14:25:14 +01:00
|
|
|
'';
|
|
|
|
|
2021-11-14 14:27:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
# replace duplicate files with symlinks
|
|
|
|
jdupes -l -r $out/share/icons
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-11-14 14:24:45 +00:00
|
|
|
description = "Icon theme designed with a minimal flat style using simple geometry and bright colours";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://snwh.org/moka";
|
2021-11-14 14:24:45 +00:00
|
|
|
license = with licenses; [ cc-by-sa-40 gpl3Only ];
|
2018-07-02 21:32:30 +01:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2016-06-10 14:25:14 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|