Graphite/libraries/path-bool/flake.nix
Dennis Kobert 8a1089938e
Path Bool library code cleanup (#2000)
* Remove log statements

* Add feature gates to functions in path.rs

* Fix infinite parsing loop and add new test

* License tweaks

* Remove trailing zero in whole number floats

* Flatten visual-tests directory

* Code review

* Clean up printlines

* Add error handling to path parsing

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-23 12:16:31 +02:00

48 lines
1.2 KiB
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};
outputs = {self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem ( system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
toolchain = pkgs.rust-bin.stable.latest.default.override {
extensions = ["rust-src" "clippy" "rust-analyzer"];
};
buildInputs = with pkgs; [
llvm
];
in {
devShells.default = pkgs.mkShell {
stdenv = pkgs.clangStdenv;
packages = with pkgs; [
bacon
valgrind
kcachegrind
cargo-flamegraph
];
nativeBuildInputs = with pkgs; [
lld
toolchain
llvm
cargo
];
inherit buildInputs;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
};
}
);
}