diff --git a/calc.nix b/calc.nix new file mode 100644 index 0000000..248794f --- /dev/null +++ b/calc.nix @@ -0,0 +1,21 @@ +let + pkgs = import { }; +in + pkgs.stdenv.mkDerivation { + name = "hello-nix"; + + buildInputs = [ + pkgs.nasm + ]; + + src = ./.; + + buildPhase = '' + make asm + ''; + + installPhase = '' + mkdir -p $out/bin + cp calc $out/bin/calc + ''; + } \ No newline at end of file