mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-24 00:42:39 +03:00
22 lines
321 B
Nix
22 lines
321 B
Nix
|
{ cargo
|
||
|
, configureCargoVendoredDepsHook
|
||
|
, lib
|
||
|
, stdenv
|
||
|
}:
|
||
|
|
||
|
args@{ nativeBuildInputs ? [ ], ... }:
|
||
|
stdenv.mkDerivation (args // {
|
||
|
nativeBuildInputs = nativeBuildInputs ++ [
|
||
|
cargo
|
||
|
configureCargoVendoredDepsHook
|
||
|
];
|
||
|
|
||
|
buildPhase = ''
|
||
|
cargo check --release
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
touch $out
|
||
|
'';
|
||
|
})
|