2023-12-20 20:17:29 +03:00
|
|
|
{ pkgs ? import <nixpkgs> { system = builtins.currentSystem; }, lib ? pkgs.lib
|
|
|
|
, rustPlatform ? pkgs.rustPlatform, fetchCrate ? pkgs.fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "urouter";
|
2024-01-21 09:14:45 +03:00
|
|
|
version = "0.6.1";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-01-21 09:14:45 +03:00
|
|
|
sha256 = "sha256-1HKAqX15gvfzUFpyt0FFq9NZog1XSgeEYCrGVu4lSKM=";
|
2023-12-20 20:17:29 +03:00
|
|
|
};
|
|
|
|
|
2024-01-21 09:14:45 +03:00
|
|
|
cargoSha256 = "sha256-e/gVAmLhHhkPqxanTSz/qrayJUlBcFT0/WjA726H0bk=";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
}
|