{ lib , rustPlatform , fetchCrate , stdenv , darwin }: rustPlatform.buildRustPackage rec { pname = "ouch"; version = "0.5.1"; src = fetchCrate { inherit pname version; hash = "sha256-5peaWpXf1I6uKNlZkt/Y81DAKPOcvnQHXJZJ7+OTXhU="; }; cargoHash = "sha256-OdAu7fStTJCF1JGJG9TRE1Qosy6yjKsWq01MYpbXZcg="; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; # some examples fail to compile #cargoTestFlags = [ "--tests" ]; meta = with lib; { description = "Painless compression and decompression in the terminal"; homepage = "https://github.com/ouch-org/ouch"; changelog = "https://github.com/ouch-org/ouch/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ seanomik ]; }; }