Skip to content

Commit b1c165b

Browse files
committed
Add Nix flake
1 parent 9e6fb13 commit b1c165b

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
/result

flake.lock

Lines changed: 61 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+
description = "An intuitive system for organizing TODOs in code";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = nixpkgs.legacyPackages.${system};
13+
in
14+
{
15+
packages.default = pkgs.rustPlatform.buildRustPackage {
16+
name = "todos";
17+
src = pkgs.lib.cleanSource ./.;
18+
cargoLock.lockFile = ./Cargo.lock;
19+
20+
meta = with pkgs.lib; {
21+
description = "An intuitive system for organizing TODOs in code";
22+
homepage = "https://github.com/archtechx/todo-system";
23+
license = licenses.mit;
24+
};
25+
};
26+
27+
devShells.default = pkgs.mkShell {
28+
buildInputs = with pkgs; [
29+
cargo
30+
rustc
31+
clippy
32+
];
33+
};
34+
}
35+
);
36+
}

0 commit comments

Comments
 (0)