Commit dcb247a5 authored by TomaSajt's avatar TomaSajt Committed by Alyssa Ross
Browse files

treewide: fetchCargoVendor: inherit pname+version, part 2

parent a6a92b48
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -23,8 +23,12 @@ buildPythonPackage rec {
  '';

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src postPatch;
    name = "${pname}-${version}";
    inherit
      pname
      version
      src
      postPatch
      ;
    hash = "sha256-CDUyH08s96xUy0VhK+4ym0w9IgAq9P1UjUipVjlpl9c=";
  };

+1 −2
Original line number Diff line number Diff line
@@ -36,8 +36,7 @@ buildPythonPackage rec {
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    name = "${pname}-${version}";
    inherit pname version src;
    hash = "sha256-HbUsV+ABE89UvhCRZYXr+Q/zRDKUy+HgCVdQFHqaP4o=";
  };

+1 −2
Original line number Diff line number Diff line
@@ -43,8 +43,7 @@ buildPythonPackage rec {
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    name = "${pname}-${version}";
    inherit pname version src;
    hash = "sha256-mOHOIKmcXjPwZ8uPth+yvreHG4IpiS6SFhWY+IZS69E=";
  };

+1 −2
Original line number Diff line number Diff line
@@ -44,9 +44,8 @@ buildPythonPackage rec {

  cargoRoot = "rust";
  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    inherit pname version src;
    sourceRoot = "${src.name}/rust";
    name = "${pname}-${version}";
    hash = "sha256-6WgGIfz9I+xRJqXWhjfGDZM1umYwVlUEpLAiecZNZmI=";
    postPatch = ''
      substituteInPlace Cargo.lock \
+1 −2
Original line number Diff line number Diff line
@@ -30,8 +30,7 @@ let
    };

    cargoDeps = rustPlatform.fetchCargoVendor {
      inherit src;
      name = "${pname}-${version}";
      inherit pname version src;
      hash = "sha256-bGhS36Fc7LUdpTHsIM1zn1vX2T/OX+fPewLxLGSZRrk=";
    };

Loading