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
13
pkgs/os-specific/darwin/ghc-standalone-archive/default.nix
Normal file
13
pkgs/os-specific/darwin/ghc-standalone-archive/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ runCommand, cctools }:
|
||||
{ haskellPackages, src, deps ? p : [], name }: let
|
||||
inherit (haskellPackages) ghc ghcWithPackages;
|
||||
with-env = ghcWithPackages deps;
|
||||
ghcName = "${ghc.targetPrefix}ghc";
|
||||
in runCommand name { buildInputs = [ with-env cctools ]; } ''
|
||||
mkdir -p $out/lib
|
||||
mkdir -p $out/include
|
||||
${ghcName} ${src} -staticlib -outputdir . -o $out/lib/${name}.a -stubdir $out/include
|
||||
for file in ${ghc}/lib/${ghcName}-${ghc.version}/include/*; do
|
||||
ln -sv $file $out/include
|
||||
done
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue