Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "rhack"; 5 version = "0.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "nakabonne"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "088ynf65szaa86pxwwasn3wwi00z5pn7i8w9gh5dyn983z4d8237"; 12 }; 13 14 cargoSha256 = "sha256-HmBh2qbO/HuNPfHKifq41IB5ResnGka2iaAsnwppm9s="; 15 16 meta = with lib; { 17 description = "Temporary edit external crates that your project depends on"; 18 homepage = "https://github.com/nakabonne/rhack"; 19 license = licenses.bsd3; 20 maintainers = with maintainers; [ figsoda ]; 21 }; 22}