Skip to content

Commit 0c2cfb0

Browse files
committed
flake: init
1 parent 03ba933 commit 0c2cfb0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

flake.nix

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
inputs = {
3+
crane = {
4+
url = "github:ipetkov/crane";
5+
inputs = {
6+
flake-utils.follows = "flake-utils";
7+
nixpkgs.follows = "nixpkgs";
8+
};
9+
};
10+
fenix = {
11+
url = "github:nix-community/fenix";
12+
inputs.nixpkgs.follows = "nixpkgs";
13+
};
14+
flake-utils.url = "github:numtide/flake-utils";
15+
nixpkgs.url = "nixpkgs/nixos-unstable";
16+
};
17+
18+
outputs = { self, crane, fenix, flake-utils, nixpkgs }:
19+
flake-utils.lib.eachDefaultSystem (system: {
20+
packages.default =
21+
let
22+
craneLib = crane.lib.${system}.overrideToolchain
23+
fenix.packages.${system}.minimal.toolchain;
24+
in
25+
craneLib.buildPackage {
26+
src = ./sable_ircd;
27+
};
28+
});
29+
}

0 commit comments

Comments
 (0)