fasm: init at 1.73.04 (#50378)
This commit is contained in:
committed by
Orivej Desh (NixOS)
parent
650036f022
commit
101133deae
@@ -0,0 +1,28 @@
|
||||
{ stdenv, lib, fasm-bin, isx86_64 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit (fasm-bin) version src meta;
|
||||
|
||||
name = "fasm-${version}";
|
||||
|
||||
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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user