Package in nix
This commit is contained in:
parent
e92a7738ae
commit
92f34c49b0
10
flake.nix
10
flake.nix
|
|
@ -10,15 +10,17 @@
|
|||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "cgen";
|
||||
version = "0";
|
||||
src = builtins.fetchGit {
|
||||
url = ./.;
|
||||
submodules = true;
|
||||
};
|
||||
src = ./.;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc14
|
||||
tree-sitter
|
||||
tinyxxd
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin/
|
||||
cp build/bin/cgen $out/bin/cgen
|
||||
'';
|
||||
};
|
||||
|
||||
devShells.default =
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ void gen_enum_strs() {
|
|||
|
||||
int main(int argc, char **argv) {
|
||||
if (argc != 2) {
|
||||
printf("%s", USAGE);
|
||||
printf("%s\n", USAGE);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue