flake: fix build with configure script
This commit is contained in:
parent
ba8effbead
commit
9d828cce36
1 changed files with 6 additions and 12 deletions
18
flake.nix
18
flake.nix
|
@ -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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue