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
34
pkgs/development/libraries/rustc-demangle/default.nix
Normal file
34
pkgs/development/libraries/rustc-demangle/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ rustPlatform, fetchFromGitHub, rust, lib, stdenv }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "rustc-demangle";
|
||||
version = "0.1.20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alexcrichton";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-elxclyuLmr3N66s+pR4/6OU98k1oXI2wKVJtzWPY8FI=";
|
||||
};
|
||||
|
||||
cargoPatches = [
|
||||
# generated using `cargo generate-lockfile` since repo is missing lockfile
|
||||
./add-Cargo.lock.patch
|
||||
];
|
||||
cargoSha256 = "sha256-1tW5TOap5MstxTXAFij3IB8TIpI+FryEX9TXlVXjRl4=";
|
||||
cargoBuildFlags = "-p rustc-demangle-capi";
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib
|
||||
cp target/${rust.toRustTargetSpec stdenv.hostPlatform}/release/librustc_demangle.so $out/lib
|
||||
cp -R crates/capi/include $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rust symbol demangling";
|
||||
homepage = "https://github.com/alexcrichton/rustc-demangle";
|
||||
license = with licenses; [ asl20 mit ];
|
||||
# upstream supports other platforms, but maintainer can only test on linux
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ _1000teslas ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue