diff --git a/pkgs/desktops/cinnamon/default.nix b/pkgs/desktops/cinnamon/default.nix index f991c970bfca..b857fbfd031a 100644 --- a/pkgs/desktops/cinnamon/default.nix +++ b/pkgs/desktops/cinnamon/default.nix @@ -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 { }; diff --git a/pkgs/desktops/cinnamon/mint-l-icons/default.nix b/pkgs/desktops/cinnamon/mint-l-icons/default.nix new file mode 100644 index 000000000000..4a1da745059f --- /dev/null +++ b/pkgs/desktops/cinnamon/mint-l-icons/default.nix @@ -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; + }; +} diff --git a/pkgs/desktops/cinnamon/mint-l-theme/default.nix b/pkgs/desktops/cinnamon/mint-l-theme/default.nix new file mode 100644 index 000000000000..ec9de00ac45a --- /dev/null +++ b/pkgs/desktops/cinnamon/mint-l-theme/default.nix @@ -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; + }; +}