mirror of
https://github.com/kanidm/kanidm.git
synced 2025-04-21 01:35:39 +02:00
Added shell.nix to create dev environment (#3362)
This commit is contained in:
parent
c324fa92f5
commit
10f03e19c0
|
@ -1,2 +1,4 @@
|
||||||
# yale-mistakes were made
|
# yale-mistakes were made
|
||||||
/pykanidm/* @yaleman
|
/pykanidm/* @yaleman
|
||||||
|
# Least qualified nix guy :P
|
||||||
|
shell.nix @cebbinghaus
|
||||||
|
|
2
rust-toolchain.toml
Normal file
2
rust-toolchain.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "stable"
|
25
shell.nix
Normal file
25
shell.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
let
|
||||||
|
overrides = (builtins.fromTOML (builtins.readFile ./rust-toolchain.toml));
|
||||||
|
in
|
||||||
|
pkgs.mkShellNoCC rec {
|
||||||
|
# Kanidm dependencies
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
pkg-config
|
||||||
|
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
|
||||||
|
clang
|
||||||
|
llvmPackages.bintools
|
||||||
|
|
||||||
|
openssl
|
||||||
|
] ++ pkgs.lib.optionals (pkgs.stdenv.isLinux) [
|
||||||
|
systemd
|
||||||
|
linux-pam
|
||||||
|
];
|
||||||
|
|
||||||
|
RUSTC_VERSION = overrides.toolchain.channel;
|
||||||
|
# https://github.com/rust-lang/rust-bindgen#environment-variables
|
||||||
|
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
|
||||||
|
}
|
Loading…
Reference in a new issue