WorkTimer/flake.nix

33 lines
927 B
Nix
Raw Normal View History

2024-11-01 16:21:47 +01:00
{
description = "Generic Rust Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux"];
perSystem = {
pkgs,
...
}: let
app = pkgs.rustPlatform.buildRustPackage {
pname = "work-timer";
version = "0.1.0";
cargoLock = {
lockFile = ./Cargo.lock;
};
src = ./.;
};
in {
packages = {
default = app;
inherit app;
};
};
};
}