mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-07 15:55:00 +00:00

* 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>
48 lines
1.2 KiB
Nix
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;
|
|
};
|
|
}
|
|
);
|
|
}
|