summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-05-05 22:33:03 +0800
committerBobby Rong <rjl931189261@126.com>2023-05-05 22:44:25 +0800
commitacdf90cea8638b040490afdc91719f7b164a7ad3 (patch)
tree55c210fb96760cb44cce105b0881df38a6c5c105 /pkgs/desktops
parent32270f094e4975a9fbbe2d8994c7db39deeacf26 (diff)
cinnamon.mint-l-theme: init at 1.9.3
https://github.com/linuxmint/mint-l-theme/commits/1.9.3
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/cinnamon/default.nix1
-rw-r--r--pkgs/desktops/cinnamon/mint-l-theme/default.nix46
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/default.nix b/pkgs/desktops/cinnamon/default.nix
index 63be2279a4fa5..b857fbfd031a6 100644
--- a/pkgs/desktops/cinnamon/default.nix
+++ b/pkgs/desktops/cinnamon/default.nix
@@ -39,6 +39,7 @@ lib.makeScope pkgs.newScope (self: with self; {
   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-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;
+  };
+}