forked from mirrors/nixpkgs
crate2nix: use sourceRoot, so that src is a proper derivation
Makes it possible to get the top-level source path as `crate2nix.src` for e.g. using `tools.nix` for IFD.
This commit is contained in:
parent
39a3fc6958
commit
28781f9097
|
@ -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=";
|
||||
|
||||
|
|
Loading…
Reference in a new issue