pict-rs-aggregator/flake.nix

35 lines
904 B
Nix
Raw Permalink Normal View History

2023-03-10 03:49:22 +00:00
{
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 {
2024-02-02 04:14:32 +00:00
nativeBuildInputs = [ cargo cargo-outdated clippy gcc rust-analyzer rustc rustfmt ];
2023-03-10 03:49:22 +00:00
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
}