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
42
pkgs/development/beam-modules/fetch-rebar-deps.nix
Normal file
42
pkgs/development/beam-modules/fetch-rebar-deps.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, rebar3 }:
|
||||
|
||||
{ name
|
||||
, version
|
||||
, sha256
|
||||
, src
|
||||
, meta ? { }
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
pname = "rebar-deps-${name}";
|
||||
inherit version;
|
||||
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontFixup = true;
|
||||
|
||||
prePhases = ''
|
||||
cp ${src} .
|
||||
HOME='.' DEBUG=1 ${rebar3}/bin/rebar3 get-deps
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out/_checkouts"
|
||||
for i in ./_build/default/lib/* ; do
|
||||
echo "$i"
|
||||
cp -R "$i" "$out/_checkouts"
|
||||
done
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
outputHash = sha256;
|
||||
|
||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||
inherit meta;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue