pict-rs-aggregator/flake.nix
asonix 32aaa1c464
Some checks failed
continuous-integration/drone/push Build is failing
Add flake
2023-03-09 21:51:22 -06:00

35 lines
928 B
Nix

{
description = "pict-rs-aggregator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
packages = rec {
pict-rs-aggregator = pkgs.callPackage ./pict-rs-aggregator.nix { };
default = pict-rs-aggregator;
};
apps = rec {
dev = flake-utils.lib.mkApp { drv = self.packages.${system}.pict-rs-aggregator; };
default = dev;
};
devShell = with pkgs; mkShell {
nativeBuildInputs = [ cargo cargo-outdated cargo-zigbuild clippy gcc protobuf rust-analyzer rustc rustfmt ];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
}