mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-17 11:31:00 +00:00
initial nix support
This commit is contained in:
parent
60f7efb5d4
commit
d2284679f9
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,4 +5,4 @@ CMakeLists.txt.user
|
||||
InterfacesAndLibraries
|
||||
.DS_Store
|
||||
.vscode
|
||||
|
||||
result
|
||||
|
27
default.nix
Normal file
27
default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ system ? builtins.currentSystem, pkgs ? import <nixpkgs> { inherit system; }
|
||||
, ... }:
|
||||
|
||||
pkgs.callPackage ({
|
||||
stdenv, cmake, ninja, bison, flex,ruby, boost, gmp, mpfr, libmpc, zlib,
|
||||
lib, bash }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "retro68";
|
||||
nativeBuildInputs = [ cmake bison ruby flex ];
|
||||
buildInputs = [
|
||||
boost
|
||||
gmp
|
||||
mpfr
|
||||
libmpc
|
||||
zlib
|
||||
bash
|
||||
];
|
||||
src = if lib.inNixShell then null else pkgs.nix-gitignore.gitignoreSource [ ] ./.;
|
||||
|
||||
builder = ./nix/builder.sh;
|
||||
|
||||
hardeningDisable = ["all"];
|
||||
}
|
||||
|
||||
|
||||
) { }
|
3
nix/builder.sh
Normal file
3
nix/builder.sh
Normal file
@ -0,0 +1,3 @@
|
||||
source $stdenv/setup
|
||||
|
||||
bash $src/build-toolchain.bash --prefix=$out
|
Loading…
x
Reference in New Issue
Block a user