2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
2023-05-24 13:37:59 +00:00
|
|
|
, stdenvNoCC
|
2023-02-16 17:41:37 +00:00
|
|
|
, fetchurl
|
|
|
|
, gtk-engine-murrine
|
2023-05-24 13:37:59 +00:00
|
|
|
, jdupes
|
2023-02-16 17:41:37 +00:00
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "theme-obsidian2";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/madmaxms/theme-obsidian-2/releases/download/v${version}/obsidian-2-theme.tar.xz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-yJoMS5XrHlMss+rdJ+xLJx0F9Hs1Cc+MFk+xyhRXaf0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jdupes
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/themes
|
2020-09-25 04:45:31 +00:00
|
|
|
cp -a Obsidian-2* $out/share/themes
|
2023-05-24 13:37:59 +00:00
|
|
|
jdupes --quiet --link-soft --recurse $out/share
|
2020-04-24 23:36:52 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://github.com/madmaxms/theme-obsidian-2";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-16 17:41:37 +00:00
|
|
|
description = "Gnome theme based upon Adwaita-Maia dark skin";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/madmaxms/theme-obsidian-2";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|