cinnamon.nemo-extensions: don't duplicate version and src
This commit is contained in:
parent
a26bc72ff0
commit
067a8989e5
|
@ -3,19 +3,15 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
srcs = import ../srcs.nix { inherit fetchFromGitHub; };
|
||||||
|
in
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "nemo-emblems";
|
pname = "nemo-emblems";
|
||||||
version = "5.8.0";
|
inherit (srcs) version src;
|
||||||
|
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "linuxmint";
|
|
||||||
repo = "nemo-extensions";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
sourceRoot = "${src.name}/nemo-emblems";
|
sourceRoot = "${src.name}/nemo-emblems";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -10,16 +10,12 @@
|
||||||
, gnome
|
, gnome
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
srcs = import ../srcs.nix { inherit fetchFromGitHub; };
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nemo-fileroller";
|
pname = "nemo-fileroller";
|
||||||
version = "5.8.0";
|
inherit (srcs) version src;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "linuxmint";
|
|
||||||
repo = "nemo-extensions";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
sourceRoot = "${src.name}/nemo-fileroller";
|
sourceRoot = "${src.name}/nemo-fileroller";
|
||||||
|
|
||||||
|
|
|
@ -11,16 +11,12 @@
|
||||||
, substituteAll
|
, substituteAll
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
srcs = import ../srcs.nix { inherit fetchFromGitHub; };
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nemo-python";
|
pname = "nemo-python";
|
||||||
version = "5.8.0";
|
inherit (srcs) version src;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "linuxmint";
|
|
||||||
repo = "nemo-extensions";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-tyRYPWJa93w05a0PcYvz1GA8/xX2kHLdIzz4tCcppiY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
sourceRoot = "${src.name}/nemo-python";
|
sourceRoot = "${src.name}/nemo-python";
|
||||||
|
|
||||||
|
|
15
pkgs/desktops/cinnamon/nemo-extensions/srcs.nix
Normal file
15
pkgs/desktops/cinnamon/nemo-extensions/srcs.nix
Normal file
|
@ -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=";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue