flake: fix style
This commit is contained in:
parent
72938f9c77
commit
ba8effbead
1 changed files with 37 additions and 36 deletions
73
flake.nix
73
flake.nix
|
@ -1,40 +1,41 @@
|
||||||
{
|
{
|
||||||
description = "Callisto, a featureful extension runtime for Lua 5.4";
|
description = "Callisto, a featureful extension runtime for Lua 5.4";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
];
|
];
|
||||||
forAllSystems = fn:
|
forAllSystems = fn:
|
||||||
nixpkgs.lib.genAttrs systems (system:
|
nixpkgs.lib.genAttrs systems (system:
|
||||||
fn (import nixpkgs {
|
fn (import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = forAllSystems (pkgs: {
|
packages = forAllSystems (pkgs: {
|
||||||
default = pkgs.stdenv.mkDerivation {
|
default = pkgs.stdenv.mkDerivation {
|
||||||
name = "callisto";
|
name = "callisto";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
gcc
|
nativeBuildInputs = with pkgs; [
|
||||||
binutils
|
gcc
|
||||||
];
|
binutils
|
||||||
buildPhase = ''
|
];
|
||||||
make
|
buildPhase = ''
|
||||||
'';
|
make
|
||||||
installPhase = ''
|
'';
|
||||||
mkdir -p $out/bin
|
installPhase = ''
|
||||||
make DESTDIR="$out" PREFIX=/ install
|
mkdir -p $out/bin
|
||||||
'';
|
make DESTDIR="$out" PREFIX=/ install
|
||||||
};
|
'';
|
||||||
});
|
};
|
||||||
};
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue