nixpkgs-suyu/pkgs/data/themes/vimix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, gnome-shell
, gtk-engine-murrine
, gtk_engines
, sassc
, gitUpdater
}:
2020-02-24 16:51:12 +01:00
stdenv.mkDerivation rec {
pname = "vimix-gtk-themes";
version = "2022-04-24";
2020-02-24 16:51:12 +01:00
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
sha256 = "0q0ahm060qvr7r9j3x9lxidjnwf032c2g1pcqw9mz93iy7vfn358";
2020-02-24 16:51:12 +01:00
};
nativeBuildInputs = [
gnome-shell # needed to determine the gnome-shell version
sassc
];
2020-02-24 16:51:12 +01:00
buildInputs = [
gtk_engines
];
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
2020-02-24 16:51:12 +01:00
postPatch = ''
patchShebangs install.sh
'';
2020-02-24 16:51:12 +01:00
installPhase = ''
runHook preInstall
2020-02-24 16:51:12 +01:00
mkdir -p $out/share/themes
name= HOME="$TMPDIR" ./install.sh --all --dest $out/share/themes
2020-02-24 16:51:12 +01:00
rm $out/share/themes/*/{AUTHORS,LICENSE}
runHook postInstall
2020-02-24 16:51:12 +01:00
'';
passthru.updateScript = gitUpdater {inherit pname version; };
meta = with lib; {
2020-02-24 16:51:12 +01:00
description = "Flat Material Design theme for GTK based desktop environments";
homepage = "https://github.com/vinceliuice/vimix-gtk-themes";
license = licenses.gpl3Only;
2020-02-24 16:51:12 +01:00
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}