Add standard nix files and nix-ld

This commit is contained in:
coolneng 2022-10-20 10:31:00 +02:00
parent b5abb09507
commit 6fbe501f9a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 31 additions and 0 deletions

14
flake-template.nix Normal file
View File

@ -0,0 +1,14 @@
{
description = "";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShell = import ./shell.nix { inherit pkgs; };
}
);
}

8
nix-ld.nix Normal file
View File

@ -0,0 +1,8 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc openssl ];
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
}

9
shell.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
];
}