-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
38 lines (35 loc) · 829 Bytes
/
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
{
description = "ccase flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
let
name = "ccase";
in
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = name;
version = (lib.importTOML ./Cargo.toml).package.version;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
};
devShell = pkgs.mkShell {
name = "ccase";
buildInputs = with pkgs; [
just
watchexec
cargo
];
};
}
);
}