diff --git a/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix b/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix index 9ae71d97976d..d298827487e9 100644 --- a/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix +++ b/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix @@ -3,19 +3,15 @@ , fetchFromGitHub }: +let + srcs = import ../srcs.nix { inherit fetchFromGitHub; }; +in python3.pkgs.buildPythonApplication rec { pname = "nemo-emblems"; - version = "5.8.0"; + inherit (srcs) version src; format = "setuptools"; - src = fetchFromGitHub { - owner = "linuxmint"; - repo = "nemo-extensions"; - rev = version; - sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY="; - }; - sourceRoot = "${src.name}/nemo-emblems"; postPatch = '' diff --git a/pkgs/desktops/cinnamon/nemo-extensions/nemo-fileroller/default.nix b/pkgs/desktops/cinnamon/nemo-extensions/nemo-fileroller/default.nix index 1b5717b2fd70..71c61db992a8 100644 --- a/pkgs/desktops/cinnamon/nemo-extensions/nemo-fileroller/default.nix +++ b/pkgs/desktops/cinnamon/nemo-extensions/nemo-fileroller/default.nix @@ -10,16 +10,12 @@ , gnome }: +let + srcs = import ../srcs.nix { inherit fetchFromGitHub; }; +in stdenv.mkDerivation rec { pname = "nemo-fileroller"; - version = "5.8.0"; - - src = fetchFromGitHub { - owner = "linuxmint"; - repo = "nemo-extensions"; - rev = version; - sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY="; - }; + inherit (srcs) version src; sourceRoot = "${src.name}/nemo-fileroller"; diff --git a/pkgs/desktops/cinnamon/nemo-extensions/nemo-python/default.nix b/pkgs/desktops/cinnamon/nemo-extensions/nemo-python/default.nix index a34b0a9eb5bc..8b6f5f07a1c3 100644 --- a/pkgs/desktops/cinnamon/nemo-extensions/nemo-python/default.nix +++ b/pkgs/desktops/cinnamon/nemo-extensions/nemo-python/default.nix @@ -11,16 +11,12 @@ , substituteAll }: +let + srcs = import ../srcs.nix { inherit fetchFromGitHub; }; +in stdenv.mkDerivation rec { pname = "nemo-python"; - version = "5.8.0"; - - src = fetchFromGitHub { - owner = "linuxmint"; - repo = "nemo-extensions"; - rev = version; - sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY="; - }; + inherit (srcs) version src; sourceRoot = "${src.name}/nemo-python"; diff --git a/pkgs/desktops/cinnamon/nemo-extensions/srcs.nix b/pkgs/desktops/cinnamon/nemo-extensions/srcs.nix new file mode 100644 index 000000000000..491373f5ea5f --- /dev/null +++ b/pkgs/desktops/cinnamon/nemo-extensions/srcs.nix @@ -0,0 +1,15 @@ +{ fetchFromGitHub }: + +rec { + # When you bump this, you should make sure all nemo-extensions + # are actually using this file since we try to deal with tags + # like nemo-fileroller-5.6.1 according to upstream's wishes. + version = "5.8.0"; + + src = fetchFromGitHub { + owner = "linuxmint"; + repo = "nemo-extensions"; + rev = version; + sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY="; + }; +}