1
0
Fork 0
nixos-exporter/flake.nix

45 lines
972 B
Nix
Raw Normal View History

2022-12-31 01:01:22 +01:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }: {
packages.x86_64-linux = let
pkgs = import nixpkgs {
system = "x86_64-linux";
};
in {
nixos-exporter = pkgs.rustPlatform.buildRustPackage rec {
pname = "nixos-exporter";
2023-03-25 16:18:36 +01:00
version = "0.5.0";
2022-12-31 01:01:22 +01:00
src = ./.;
2023-01-08 18:05:28 +01:00
nativeBuildInputs = [
pkgs.pkg-config
];
buildInputs = [
pkgs.openssl
];
2022-12-31 01:01:22 +01:00
cargoLock.lockFile = ./Cargo.lock;
};
default = self.packages.x86_64-linux.nixos-exporter;
};
apps.x86_64-linux = {
nixos-exporter = {
type = "app";
program = self.packages.x86_64-linux.nixos-exporter + "/bin/nixos-exporter";
};
default = self.apps.x86_64-linux.nixos-exporter;
};
hydraJobs = {
2023-04-17 06:38:58 +02:00
packages.x86_64-linux.nixos-exporter = self.packages.x86_64-linux.nixos-exporter;
2022-12-31 01:01:22 +01:00
};
};
}