add test suite, help/exit functionality
This commit is contained in:
parent
a183d55b69
commit
6d162f5ae9
7 changed files with 441 additions and 69 deletions
30
test.nix
Normal file
30
test.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
nasm,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
name = "asm-test";
|
||||
src = ./src;
|
||||
nativeBuildInputs = [
|
||||
nasm
|
||||
];
|
||||
buildInputs = [
|
||||
];
|
||||
configurePhase = ''
|
||||
'';
|
||||
buildPhase = ''
|
||||
nasm -f elf test_start.asm
|
||||
ld -m elf_i386 test_start.o -o test
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp test $out/bin/test
|
||||
'';
|
||||
|
||||
meta = {
|
||||
license = lib.licenses.wtfpl;
|
||||
mainProgram = "test";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue