cinnamon.nemo-extensions: don't duplicate version and src
This commit is contained in:
parent
a26bc72ff0
commit
067a8989e5
4 changed files with 27 additions and 24 deletions
|
@ -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 = ''
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
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