Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "jf"; 5 version = "0.3.3"; 6 7 src = fetchFromGitHub { 8 owner = "sayanarijit"; 9 repo = "jf"; 10 rev = "v${version}"; 11 hash = "sha256-dZX8C/nJaKfgHsUAXR1DRZS+PWDZF+QDVpOSaOlwFp4="; 12 }; 13 14 cargoHash = "sha256-H9UZCKy+0xL6J8f/6yCiM4X5TMOrN8UEEDwxqNR7xQY="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 # skip auto manpage update 19 buildNoDefaultFeatures = true; 20 21 postInstall = '' 22 installManPage assets/jf.1 23 ''; 24 25 meta = with lib; { 26 description = "A small utility to safely format and print JSON objects in the commandline"; 27 homepage = "https://github.com/sayanarijit/jf"; 28 license = licenses.mit; 29 maintainers = [ maintainers.sayanarijit ]; 30 }; 31}