Add in nix packaging (#1)

* Add in nix packaging

* include stdint

* Fixes the PRs
This commit is contained in:
Able 2024-03-07 10:05:17 -06:00 committed by GitHub
parent a2daa89be5
commit ea7d4bc02f
3 changed files with 12 additions and 0 deletions

1
hbas.c
View file

@ -23,6 +23,7 @@ SOFTWARE.
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdint.h>
void hd(char *data, size_t len) { void hd(char *data, size_t len) {
for (size_t ii = 0; ii < len; ii += 1) { for (size_t ii = 0; ii < len; ii += 1) {

2
run.sh Executable file
View file

@ -0,0 +1,2 @@
make CC=clang
./hbas < example.S > example.hbf

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell rec {
buildInputs = with pkgs; [
clang
];
shellHook = ''
export CC=clang
'';
}