flake: fix build with configure script

This commit is contained in:
Jeremy Baxter 2024-02-12 15:48:59 +13:00
parent ba8effbead
commit 9d828cce36

View file

@ -1,8 +1,8 @@
{ {
description = "Callisto, a featureful extension runtime for Lua 5.4"; description = "standalone scripting platform for Lua 5.4";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
}; };
outputs = { self, nixpkgs }: outputs = { self, nixpkgs }:
@ -24,17 +24,11 @@
name = "callisto"; name = "callisto";
src = ./.; src = ./.;
nativeBuildInputs = with pkgs; [ dontAddPrefix = true;
gcc installFlags = [
binutils "DESTDIR=$(out)"
"PREFIX=/"
]; ];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
make DESTDIR="$out" PREFIX=/ install
'';
}; };
}); });
}; };