portmod: 2.0.3 -> 2.1.0 (#144847)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
marius851000
2021-11-11 15:00:32 +01:00
committed by GitHub
parent 4cb7014e14
commit 0aa2edcd9e

View File

@@ -1,22 +1,22 @@
{ lib, callPackage, python3Packages, fetchFromGitLab, cacert,
rustPlatform, bubblewrap, git, perlPackages, imagemagick, fetchurl, fetchzip,
jre, makeWrapper, tr-patcher, tes3cmd, fetchpatch }:
{ lib, callPackage, python3Packages, fetchFromGitLab, cacert
, rustPlatform, bubblewrap, git, perlPackages, imagemagick, fetchurl, fetchzip
, jre, makeWrapper, tr-patcher, tes3cmd, openmw }:
let
version = "2.0.3";
version = "2.1.0";
src = fetchFromGitLab {
owner = "portmod";
repo = "Portmod";
rev = "v${version}";
sha256 = "sha256-vMdyaI1Ps7bFoRvwdVNVG9vPFEiGb7CPvKEWfxiM128=";
sha256 = "sha256-b/ENApFovMPNUMbJhwY+TZCnSzpr1e/IKJ/5XAGTQjE=";
};
portmod-rust = rustPlatform.buildRustPackage rec {
inherit src version;
pname = "portmod-rust";
cargoHash = "sha256-tAghZmlg34jHr8gtNgL3MQ8EI7K6/TfDcTbBjxdWLr0=";
cargoHash = "sha256-3EfMMpSWSYsB3nXaoGGDuKQ9duyCKzbrT6oeATnzqLE=";
nativeBuildInputs = [ python3Packages.python ];
@@ -30,6 +30,7 @@ let
tr-patcher
tes3cmd
imagemagick
openmw
];
in
@@ -47,15 +48,6 @@ python3Packages.buildPythonApplication rec {
--replace "RustExtension(\"portmodlib.portmod\", binding=Binding.PyO3, strip=True)" ""
'';
patches = [
(fetchpatch {
# fix error when symlinks are present in the path (https://gitlab.com/portmod/portmod/-/merge_requests/393)
# happen with ~/.nix-profile
url = "https://gitlab.com/portmod/portmod/-/merge_requests/393.patch";
sha256 = "sha256-XHifwD/Nh7UiMZdvSNudVF7qpBOpjGTKSr4VVdJqUdA=";
})
];
propagatedBuildInputs = with python3Packages; [
setuptools-scm
setuptools