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
28
pkgs/development/compilers/fasm/default.nix
Normal file
28
pkgs/development/compilers/fasm/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ stdenv, lib, fasm-bin, isx86_64 }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit (fasm-bin) version src meta;
|
||||
|
||||
pname = "fasm";
|
||||
|
||||
nativeBuildInputs = [ fasm-bin ];
|
||||
|
||||
buildPhase = ''
|
||||
fasm source/Linux${lib.optionalString isx86_64 "/x64"}/fasm.asm fasm
|
||||
for tool in listing prepsrc symbols; do
|
||||
fasm tools/libc/$tool.asm
|
||||
cc -o tools/libc/fasm-$tool tools/libc/$tool.o
|
||||
done
|
||||
'';
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
installPhase = ''
|
||||
install -Dt $out/bin fasm tools/libc/fasm-*
|
||||
|
||||
docs=$doc/share/doc/fasm
|
||||
mkdir -p $docs
|
||||
cp -r examples/ *.txt tools/fas.txt $docs
|
||||
cp tools/readme.txt $docs/tools.txt
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue