9 pin = lib.importJSON ./pin.json;
12 rustPlatform.buildRustPackage {
13 inherit (pin) pname version;
17 # upstream doesn't ship a Cargo.lock, is generated by the update script
19 cp ${./Cargo.lock} Cargo.lock
22 cargoLock.lockFile = ./Cargo.lock;
24 outputs = [ "out" "dev" ];
26 # Headers are not handled by cargo nor buildRustPackage
28 install -Dm644 include/rure.h -t "$dev/include"
31 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
35 passthru.updateScript = ./update.sh;
38 description = "C API for Rust's regular expression library";
39 homepage = "https://crates.io/crates/rure";
44 maintainers = [ lib.maintainers.sternenseemann ];