38 lines
720 B
Nix
38 lines
720 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
};
|
||
|
outputs = { self, nixpkgs, ... }: {
|
||
|
packages.x86_64-linux = let
|
||
|
pkgs = import nixpkgs {
|
||
|
system = "x86_64-linux";
|
||
|
};
|
||
|
in {
|
||
|
berlinerbaeder-exporter = pkgs.rustPlatform.buildRustPackage rec {
|
||
|
pname = "berlinerbaeder-exporter";
|
||
|
version = "0.1.0";
|
||
|
|
||
|
src = ./.;
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
pkgs.pkg-config
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
pkgs.openssl
|
||
|
];
|
||
|
|
||
|
cargoLock.lockFile = ./Cargo.lock;
|
||
|
|
||
|
};
|
||
|
default = self.packages.x86_64-linux.berlinerbaeder-exporter;
|
||
|
};
|
||
|
|
||
|
hydraJobs = {
|
||
|
inherit (self)
|
||
|
packages;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|