Merge pull request #230129 from bobby285271/add/mint-l

cinnamon.mint-l-{icons, theme}: init
This commit is contained in:
Bobby Rong 2023-05-06 20:52:36 +08:00 committed by GitHub
commit 69552012c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 101 additions and 0 deletions

View File

@ -38,6 +38,8 @@ lib.makeScope pkgs.newScope (self: with self; {
nemo-with-extensions = callPackage ./nemo/wrapper.nix { };
mint-artwork = callPackage ./mint-artwork { };
mint-cursor-themes = callPackage ./mint-cursor-themes { };
mint-l-icons = callPackage ./mint-l-icons { };
mint-l-theme = callPackage ./mint-l-theme { };
mint-themes = callPackage ./mint-themes { };
mint-x-icons = callPackage ./mint-x-icons { };
mint-y-icons = callPackage ./mint-y-icons { };

View File

@ -0,0 +1,53 @@
{ stdenvNoCC
, lib
, fetchFromGitHub
, gnome
, gnome-icon-theme
, hicolor-icon-theme
, gtk3
}:
stdenvNoCC.mkDerivation rec {
pname = "mint-l-icons";
version = "1.6.4";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-C6BnBIOKeewsaQPPXWWo70eQpO1pJS0+xVQghPj/TTE=";
};
propagatedBuildInputs = [
gnome.adwaita-icon-theme
gnome-icon-theme
hicolor-icon-theme
];
nativeBuildInputs = [
gtk3
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out
mv usr/share $out
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/linuxmint/mint-l-icons";
description = "Mint-L icon theme";
license = licenses.gpl3Plus; # from debian/copyright
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}

View File

@ -0,0 +1,46 @@
{ stdenvNoCC
, lib
, fetchFromGitHub
, python3
, sassc
, sass
}:
stdenvNoCC.mkDerivation rec {
pname = "mint-l-theme";
version = "1.9.3";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-x+elC1NWcd+x8dNewwKPZBdkxSzEbo7jsG8B9DcWdoA=";
};
nativeBuildInputs = [
python3
sassc
sass
];
postPatch = ''
patchShebangs .
'';
installPhase = ''
runHook preInstall
mkdir -p $out
mv usr/share $out
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/linuxmint/mint-l-theme";
description = "Mint-L theme for the Cinnamon desktop";
license = licenses.gpl3Plus; # from debian/copyright
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}