summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-05-06 20:52:36 +0800
committerGitHub <noreply@github.com>2023-05-06 20:52:36 +0800
commit69552012c2e2fe787df456d0bfdca7a79bc2d200 (patch)
treefe8c76a2a402e6b53c1c2883a8c3e745b14a53e7 /pkgs/desktops
parentc8b02e70a6b52ed2d2432c29a4cce0207bffb88b (diff)
parentacdf90cea8638b040490afdc91719f7b164a7ad3 (diff)
Merge pull request #230129 from bobby285271/add/mint-l
cinnamon.mint-l-{icons, theme}: init
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/cinnamon/default.nix2
-rw-r--r--pkgs/desktops/cinnamon/mint-l-icons/default.nix53
-rw-r--r--pkgs/desktops/cinnamon/mint-l-theme/default.nix46
3 files changed, 101 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/default.nix b/pkgs/desktops/cinnamon/default.nix
index f991c970bfcaf..b857fbfd031a6 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 0000000000000..4a1da745059fc
--- /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 0000000000000..ec9de00ac45a9
--- /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;
+  };
+}