theme-obsidian2: 2.8 -> 2.9 (#67501)

* theme-obsidian2: 2.8 -> 2.9

* theme-obsidian2: move to pkgs/data

* theme-obsidian2: use pname

* theme-obsidian2: run hooks preInstall and postInstall in install phase
This commit is contained in:
José Romildo Malaquias 2019-08-26 12:11:52 -03:00 committed by Peter Hoeg
parent da1ff985ae
commit 86e1452556
2 changed files with 7 additions and 9 deletions

View File

@ -1,25 +1,23 @@
{ stdenv, fetchFromGitHub, gtk-engine-murrine }:
stdenv.mkDerivation rec {
name = "theme-obsidian2-${version}";
version = "2.8";
pname = "theme-obsidian2";
version = "2.9";
src = fetchFromGitHub {
owner = "madmaxms";
repo = "theme-obsidian-2";
rev = "v${version}";
sha256 = "0qryqpyxbhr0kyar2cshwhzv4da6rfz9gi4wjb6xvcb6szxhlcaq";
sha256 = "1m89ws2a4nms4m8187d5cxi281b66i59xa5shlp3g1r2jc4312cy";
};
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
postPatch = ''
sed -i -e 's|Obsidian-2-Local|Obsidian-2|' Obsidian-2/index.theme
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes
cp -a Obsidian-2 $out/share/themes
runHook postInstall
'';
meta = with stdenv.lib; {

View File

@ -17104,6 +17104,8 @@ in
gtk = res.gtk2;
};
theme-obsidian2 = callPackage ../data/themes/obsidian2 { };
themes = name: callPackage (../data/misc/themes + ("/" + name + ".nix")) {};
theano = callPackage ../data/fonts/theano { };
@ -22741,8 +22743,6 @@ in
theme-jade1 = callPackage ../misc/themes/jade1 { };
theme-obsidian2 = callPackage ../misc/themes/obsidian2 { };
theme-vertex = callPackage ../misc/themes/vertex { };
rox-filer = callPackage ../desktops/rox/rox-filer {