treefmt/overlay.nix
Jonas Chevalier 3852256526
fixes the build on NixOS (#20)
* remove curl

It is not being used right now and depends on libcurl and zlib

* devshell: add clang

Rust need a CC to compile some of the stuff. Since LLVM is being used by
Rust and clang is also working on darwin, use that.

* Use oxalica's rust-overlay, add project binary using rustPlatform, and update flake.nix

Co-authored-by: Andika Demas Riyandi <andika.riyan@gmail.com>
2021-01-27 14:39:55 +01:00

15 lines
317 B
Nix

final: prev:
{
prjfmt = rec {
bin = prev.rustPlatform.buildRustPackage rec {
pname = "prjfmt";
version = "0.0.1";
src = ./.;
cargoSha256 = "sha256-98M9OPWil9bKknam8ys4dNP6/iZObW0RrAC7PxiHxYI=";
doCheck = false;
nativeBuildInputs = [ ];
buildInputs = [ ];
};
};
}