cinnamon.nemo-extensions: don't duplicate version and src

This commit is contained in:
Bobby Rong 2023-06-01 22:38:33 +08:00
parent a26bc72ff0
commit 067a8989e5
No known key found for this signature in database
4 changed files with 27 additions and 24 deletions

View file

@ -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 = ''

View file

@ -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";

View file

@ -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";

View 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=";
};
}