cartographer/flake.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2024-09-11 01:34:47 -07:00
{
description = "A TUI for the Canvas LMS.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs =
{
nixpkgs,
flake-utils,
rust-overlay,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
rust-bin.stable.latest.default
];
buildInputs = with pkgs; [
rust-analyzer
openssl
];
};
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "cartographer";
version = "0.1.0";
src = ./.;
cargoHash = "sha256-BgU2ka7Cqzw+gqbjtS3Tw/McKj79iJpUl9ZItLStB+M=";
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
};
}
);
}