-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
53 lines (47 loc) · 1.26 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
description = "Realtime Vulkan ray tracing";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay,... }: let
lib = {
inherit (flake-utils.lib) defaultSystems eachSystem;
};
supportedSystems = [ "x86_64-linux" ];
in lib.eachSystem supportedSystems (system: let
nightlyVersion = "2023-10-01";
#pkgs = mars-std.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
overlays = [
(import rust-overlay)
#(import ./pkgs)
];
};
pinnedRust = pkgs.rust-bin.nightly.${nightlyVersion}.default.override {
extensions = ["rustc-dev" "rust-src" "rust-analyzer-preview" ];
targets = [ "x86_64-unknown-linux-gnu" ];
};
rustPlatform = pkgs.makeRustPlatform {
rustc = pinnedRust;
cargo = pinnedRust;
};
#cargoPlay = pkgs.cargo-feature.override { inherit rustPlatform; };
in {
devShell = pkgs.mkShell rec {
hardeningDisable = [
"fortify"
];
nativeBuildInputs = [
pinnedRust
#cargoPlay
];
buildInputs = with pkgs; [
];
shellHook = ''
'';
};
});
}