Make it work with flake.nix
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{
|
||||
description = "crib development environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
static = pkgs.pkgsStatic;
|
||||
|
||||
in {
|
||||
devShells.${system}.default = static.mkShell {
|
||||
packages = [
|
||||
pkgs.ccache
|
||||
pkgs.gnumake
|
||||
pkgs.bear
|
||||
pkgs.ruby
|
||||
pkgs.pkg-config
|
||||
pkgs.xxd
|
||||
|
||||
pkgs.gdb
|
||||
|
||||
pkgs.binutils
|
||||
|
||||
static.pcre2
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PKG_CONFIG_PATH="${static.pcre2.dev}/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
|
||||
echo "crib static musl dev shell"
|
||||
export CC=x86_64-unknown-linux-musl-gcc
|
||||
export CXX=x86_64-unknown-linux-musl-g++
|
||||
export AR=x86_64-unknown-linux-musl-ar
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user