-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (30 loc) · 959 Bytes
/
Copy pathflake.nix
File metadata and controls
32 lines (30 loc) · 959 Bytes
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
{
description = "imperfect";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flakes.url = "github:systemic-engineering/flakes";
flakes.inputs.nixpkgs.follows = "nixpkgs";
flakes.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, flake-utils, flakes }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
rust = flakes.lib.${system}.rust;
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.git pkgs.just pkgs.jq
pkgs.openssl pkgs.zlib
pkgs.gfortran
] ++ rust.rustTools
++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
pkgs.libiconv
];
shellHook = ''
export LANG=en_US.UTF-8
'' + rust.rustHook;
};
});
}