openmetrics-vici-exporter/flake.nix

23 lines
668 B
Nix
Raw Normal View History

2024-03-27 11:56:15 +01:00
{
inputs = {
2025-02-13 16:01:40 +01:00
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
2024-03-27 11:56:15 +01:00
};
2025-02-13 16:01:40 +01:00
outputs = { self, nixpkgs, utils, naersk }:
utils.lib.eachDefaultSystem (system:
2024-03-27 11:56:15 +01:00
let
2025-02-13 16:01:40 +01:00
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
2024-03-27 11:56:15 +01:00
in
{
2025-02-13 16:01:40 +01:00
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy openssl pkg-config ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
2024-03-27 11:56:15 +01:00
};
}
);
}