Skip to content

Commit 8fad8fa

Browse files
committed
add nix flake
1 parent 20984ea commit 8fad8fa

2 files changed

Lines changed: 135 additions & 0 deletions

File tree

flake.lock

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
inputs = {
3+
fenix = {
4+
url = "github:nix-community/fenix";
5+
inputs.nixpkgs.follows = "nixpkgs";
6+
};
7+
flake-utils.url = "github:numtide/flake-utils";
8+
nixpkgs.url = "nixpkgs/nixos-unstable";
9+
};
10+
11+
outputs = {
12+
self,
13+
fenix,
14+
flake-utils,
15+
nixpkgs,
16+
}:
17+
flake-utils.lib.eachDefaultSystem (system: {
18+
packages.default = let
19+
toolchain = fenix.packages.${system}.minimal.toolchain;
20+
pkgs = nixpkgs.legacyPackages.${system};
21+
in
22+
(pkgs.makeRustPlatform {
23+
cargo = toolchain;
24+
rustc = toolchain;
25+
})
26+
.buildRustPackage {
27+
pname = "pinned-init";
28+
version = "0.0.7";
29+
30+
src = ./.;
31+
32+
cargoLock.lockFile = ./Cargo.lock;
33+
};
34+
});
35+
}
36+

0 commit comments

Comments
 (0)