vikunja-gatherer/flake.nix

24 lines
696 B
Nix
Raw Normal View History

2024-10-10 11:02:49 +02:00
{
inputs = {
2025-01-09 21:08:49 +01:00
naersk.url = "github:nix-community/naersk/master";
naersk.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
2024-10-10 11:02:49 +02:00
};
2024-10-10 13:59:43 +02:00
2025-01-09 21:08:49 +01:00
outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
2024-10-10 11:02:49 +02:00
}