uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
21
pkgs/development/compilers/rust/rust-src.nix
Normal file
21
pkgs/development/compilers/rust/rust-src.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, runCommand, rustc, minimalContent ? true }:
|
||||
|
||||
runCommand "rust-src" { } ''
|
||||
tar -xzf ${rustc.src}
|
||||
mv rustc-${rustc.version}-src $out
|
||||
rm -rf $out/{${lib.concatStringsSep "," ([
|
||||
"ci"
|
||||
"doc"
|
||||
"etc"
|
||||
"grammar"
|
||||
"llvm-project"
|
||||
"llvm-emscripten"
|
||||
"rtstartup"
|
||||
"rustllvm"
|
||||
"test"
|
||||
"vendor"
|
||||
] ++ lib.optionals minimalContent [
|
||||
"tools"
|
||||
"stdarch"
|
||||
])}}
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue