1
0
Fork 0
mirror of https://github.com/archtechx/todo-system.git synced 2025-12-12 00:54:03 +00:00

Add Nix flake

This commit is contained in:
Samuel Štancl 2025-09-13 19:41:48 +02:00
parent 9e6fb13e62
commit b1c165b0e8
3 changed files with 98 additions and 0 deletions

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
description = "An intuitive system for organizing TODOs in code";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
name = "todos";
src = pkgs.lib.cleanSource ./.;
cargoLock.lockFile = ./Cargo.lock;
meta = with pkgs.lib; {
description = "An intuitive system for organizing TODOs in code";
homepage = "https://github.com/archtechx/todo-system";
license = licenses.mit;
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustc
clippy
];
};
}
);
}