-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (25 loc) · 853 Bytes
/
Copy pathflake.nix
File metadata and controls
33 lines (25 loc) · 853 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
33
{
description = "Hackshell";
inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };
outputs = { self, nixpkgs }:
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
packages.x86_64-linux.default = pkgs.rustPlatform.buildRustPackage {
pname = "hackshell";
version = "0.3.16";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};
devShells.x86_64-linux.default = pkgs.mkShell {
strictDeps = true;
nativeBuildInputs = with pkgs; [ pkg-config rustup stdenv.cc ];
CARGO_BUILD_TARGET = "x86_64-unknown-linux-gnu";
shellHook = ''
export SHELL="zsh"
rustup default stable
rustup target add x86_64-unknown-linux-gnu
rustup component add rustfmt rust-analyzer rust-src clippy
'';
};
};
}