1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

cinnamon.folder-color-switcher: init at 1.5.5

This commit is contained in:
Bobby Rong 2022-12-19 23:05:26 +08:00
parent 25f506e942
commit 88d78542ad
No known key found for this signature in database
2 changed files with 46 additions and 0 deletions

View file

@ -14,6 +14,7 @@ lib.makeScope pkgs.newScope (self: with self; {
# Extensions added here will be shipped by default
nemoExtensions = [
folder-color-switcher
nemo-fileroller
nemo-python
];
@ -30,6 +31,7 @@ lib.makeScope pkgs.newScope (self: with self; {
cinnamon-session = callPackage ./cinnamon-session { };
cinnamon-settings-daemon = callPackage ./cinnamon-settings-daemon { };
cjs = callPackage ./cjs { };
folder-color-switcher = callPackage ./folder-color-switcher { };
nemo = callPackage ./nemo { };
nemo-fileroller = callPackage ./nemo-extensions/nemo-fileroller { };
nemo-python = callPackage ./nemo-extensions/nemo-python { };

View file

@ -0,0 +1,44 @@
{ stdenvNoCC
, lib
, fetchFromGitHub
, gettext
}:
stdenvNoCC.mkDerivation rec {
pname = "folder-color-switcher";
version = "1.5.5";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
# They don't really do tags, this is just a named commit.
rev = "5e0b768b3a5bf88a828a2489b9428997b797c1ed";
sha256 = "sha256-DU75LM5v2/E/ZmqQgyiPsOOEUw9QQ/NXNtGDFzzYvyY=";
};
nativeBuildInputs = [
gettext
];
postPatch = ''
substituteInPlace usr/share/nemo-python/extensions/nemo-folder-color-switcher.py \
--replace "/usr/share" "$out/share"
'';
installPhase = ''
runHook preInstall
mkdir -p $out
mv usr/share $out
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/linuxmint/folder-color-switcher";
description = "Change folder colors for Nemo and Caja";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}