Merge pull request #117560 from danieldk/crate2nix-source

crate2nix: use sourceRoot, so that src is a proper derivation
This commit is contained in:
Sandro 2021-03-25 09:27:52 +01:00 committed by GitHub
commit df6f2d0acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,13 +12,14 @@ rustPlatform.buildRustPackage rec {
pname = "crate2nix";
version = "0.9.0";
src = fetchFromGitHub
{
owner = "kolloch";
repo = pname;
rev = version;
sha256 = "sha256-dB8wa3CQFw8ckD420zpBGw4TnsLrHqXf+ff/WuhPsVM=";
} + "/crate2nix";
src = fetchFromGitHub {
owner = "kolloch";
repo = pname;
rev = version;
sha256 = "sha256-dB8wa3CQFw8ckD420zpBGw4TnsLrHqXf+ff/WuhPsVM=";
};
sourceRoot = "source/crate2nix";
cargoSha256 = "sha256-6V0ifH63/s5XLo4BCexPtvlUH0UQPHFW8YHF8OCH3ik=";