Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 861 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 clippy, 6 rustfmt, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "fuc"; 11 version = "3.1.1"; 12 13 src = fetchFromGitHub { 14 owner = "SUPERCILEX"; 15 repo = "fuc"; 16 tag = finalAttrs.version; 17 hash = "sha256-fDSAqsKEx+th4tiJ3VlROqF4hhHzusqiw9enAmnOPlQ="; 18 }; 19 20 cargoHash = "sha256-OoTWGeF96BpPDx1Y9AEVOIBK7kCz6pjw24pLiNcKmOc="; 21 22 RUSTC_BOOTSTRAP = 1; 23 24 cargoBuildFlags = [ 25 "--workspace" 26 "--bin cpz" 27 "--bin rmz" 28 ]; 29 30 nativeCheckInputs = [ 31 clippy 32 rustfmt 33 ]; 34 35 # error[E0602]: unknown lint: `clippy::unnecessary_debug_formatting` 36 doCheck = false; 37 38 meta = { 39 description = "Modern, performance focused unix commands"; 40 homepage = "https://github.com/SUPERCILEX/fuc"; 41 license = lib.licenses.asl20; 42 maintainers = with lib.maintainers; [ dit7ya ]; 43 }; 44})