2021-05-27 04:17:21 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine }:
|
2018-11-21 22:50:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nordic";
|
2021-11-21 19:00:11 +00:00
|
|
|
version = "unstable-2021-11-19";
|
2018-11-21 22:50:32 +00:00
|
|
|
|
|
|
|
srcs = [
|
2021-05-27 04:17:21 +01:00
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = pname;
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "0112af91943b8819f7a1af9a508cda7fe3d74051";
|
|
|
|
sha256 = "sha256-ccOA5/jXTx20495NpTgVu7DvsjfTEULqL3IyJ+Pd/ug";
|
2021-05-27 04:17:21 +01:00
|
|
|
name = "Nordic";
|
2019-01-19 19:57:31 +00:00
|
|
|
})
|
2021-05-27 04:17:21 +01:00
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = pname;
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "b30d2c844cc6ef5d020308f1c02791de45b607a7";
|
|
|
|
sha256 = "sha256-g5yCCFXzipZLmUat+1r6QWHB7DWQvMKhMexHPV/DJHM";
|
2021-05-27 04:17:21 +01:00
|
|
|
name = "Nordic-standard-buttons";
|
2018-11-21 22:50:32 +00:00
|
|
|
})
|
2021-05-27 04:17:21 +01:00
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = pname;
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "6d38d6af363528f42619f663e3ecd4c08dfd2411";
|
|
|
|
sha256 = "sha256-jaRiSE6yfTltzZ2vr8w4d+YtSz7REOcL7vOOhQvIMlQ";
|
2021-05-27 04:17:21 +01:00
|
|
|
name = "Nordic-darker";
|
2019-01-19 19:57:31 +00:00
|
|
|
})
|
2021-05-27 04:17:21 +01:00
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = pname;
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "4142817c14c27b371d42796445bedc84dc94672c";
|
|
|
|
sha256 = "sha256-FAb1+EREcwYrfSxAl6LrPaJtkHMt67NV3bG87g1cFT4";
|
2021-05-27 04:17:21 +01:00
|
|
|
name = "Nordic-darker-standard-buttons";
|
2020-02-21 13:34:05 +00:00
|
|
|
})
|
2021-05-27 04:17:21 +01:00
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = pname;
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "2a91d6f3db70412b0a80ed33546fbe93075627d8";
|
|
|
|
sha256 = "sha256-Su+amS7moc2IDONNvqw3bjL6Q0WLJWzHu6WvfcVDcDY";
|
2021-05-27 04:17:21 +01:00
|
|
|
name = "Nordic-bluish-accent";
|
2020-02-21 13:34:05 +00:00
|
|
|
})
|
2021-05-27 04:17:21 +01:00
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = pname;
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "3ebd334f97d638fdc888b16d69851e3ee31131f2";
|
|
|
|
sha256 = "sha256-h0IXtWcdDvAEVi/1cLZF4Vacdl6VAY+5uo0LGPNe0bg";
|
2021-05-27 04:17:21 +01:00
|
|
|
name = "Nordic-bluish-accent-standard-buttons";
|
2018-11-21 22:50:32 +00:00
|
|
|
})
|
2021-05-27 13:05:33 +01:00
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = "${pname}-polar";
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "803926882f8178c72b433466a377aaa33c5b372a";
|
|
|
|
sha256 = "sha256-G7Vu03PoFOEU9uxb5JiHR4Tr8qk47fPo7Gg7Vt9Zzns";
|
2021-05-27 13:05:33 +01:00
|
|
|
name = "Nordic-Polar";
|
|
|
|
})
|
|
|
|
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = "${pname}-polar";
|
2021-11-21 19:00:11 +00:00
|
|
|
rev = "988cb8a16ece3901b8b0e7a5b86503400491cb1e";
|
|
|
|
sha256 = "sha256-Zx1mrzJm5o4wQwOR8ZU2OEcjD3/6UXwLrBYpMtCkQbg";
|
2021-05-27 13:05:33 +01:00
|
|
|
name = "Nordic-Polar-standard-buttons";
|
|
|
|
})
|
2018-11-21 22:50:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-05-27 04:17:21 +01:00
|
|
|
runHook preInstall
|
2018-11-21 22:50:32 +00:00
|
|
|
mkdir -p $out/share/themes
|
|
|
|
cp -a Nordic* $out/share/themes
|
2021-05-27 04:17:21 +01:00
|
|
|
rm -r $out/share/themes/*/.gitignore
|
|
|
|
rm -r $out/share/themes/*/Art
|
|
|
|
rm -r $out/share/themes/*/LICENSE
|
|
|
|
rm -r $out/share/themes/*/README.md
|
|
|
|
rm -r $out/share/themes/*/{package.json,package-lock.json,Gulpfile.js}
|
|
|
|
rm -r $out/share/themes/*/src
|
|
|
|
rm -r $out/share/themes/*/cinnamon/*.scss
|
|
|
|
rm -r $out/share/themes/*/gnome-shell/{extensions,*.scss}
|
|
|
|
rm -r $out/share/themes/*/gtk-2.0/{assets.svg,assets.txt,links.fish,render-assets.sh}
|
|
|
|
rm -r $out/share/themes/*/gtk-3.0/{apps,widgets,*.scss}
|
|
|
|
rm -r $out/share/themes/*/kde
|
|
|
|
rm -r $out/share/themes/*/xfwm4/{assets,render_assets.fish}
|
|
|
|
runHook postInstall
|
2018-11-21 22:50:32 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-05-27 13:05:33 +01:00
|
|
|
description = "Gtk themes using the Nord color pallete";
|
2020-02-21 13:34:05 +00:00
|
|
|
homepage = "https://github.com/EliverLara/Nordic";
|
2021-05-27 04:17:21 +01:00
|
|
|
license = licenses.gpl3Only;
|
2018-11-21 22:50:32 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|