From 5fc63b32f7ba2da95b332136ab55d1de05d64f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Tue, 4 Dec 2018 00:44:07 -0200 Subject: [PATCH] nordic-polar: init at 1.3.0 --- pkgs/data/themes/nordic-polar/default.nix | 35 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/data/themes/nordic-polar/default.nix diff --git a/pkgs/data/themes/nordic-polar/default.nix b/pkgs/data/themes/nordic-polar/default.nix new file mode 100644 index 000000000000..305f59529479 --- /dev/null +++ b/pkgs/data/themes/nordic-polar/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, gtk-engine-murrine }: + +stdenv.mkDerivation rec { + name = "nordic-polar-${version}"; + version = "1.3.0"; + + srcs = [ + (fetchurl { + url = "https://github.com/EliverLara/Nordic-Polar/releases/download/v${version}/Nordic-Polar.tar.xz"; + sha256 = "1c5zgymkwd89fr680c49siwbkhfbay56iq9vlyqkj1dp0xnc528s"; + }) + (fetchurl { + url = "https://github.com/EliverLara/Nordic-Polar/releases/download/v${version}/Nordic-Polar-standard-buttons.tar.xz"; + sha256 = "0nxzcgqzc42qvnhafranz6rwanqb4wzf9ychm5m4yrlp3ngw38p4"; + }) + ]; + + sourceRoot = "."; + + propagatedUserEnvPkgs = [ gtk-engine-murrine ]; + + installPhase = '' + mkdir -p $out/share/themes + cp -a Nordic-Polar* $out/share/themes + rm $out/share/themes/*/{LICENSE,README.md} + ''; + + meta = with stdenv.lib; { + description = "Gtk theme created using the awesome Nord color pallete"; + homepage = https://github.com/EliverLara/Nordic-Polar; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = [ maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c4354acf0ca8..40f36a4b3510 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15478,6 +15478,8 @@ in nafees = callPackage ../data/fonts/nafees { }; + nordic-polar = callPackage ../data/themes/nordic-polar { }; + inherit (callPackages ../data/fonts/noto-fonts {}) noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra;