Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 32 lines 810 B view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "jf"; 5 version = "0.6.2"; 6 7 src = fetchFromGitHub { 8 owner = "sayanarijit"; 9 repo = "jf"; 10 rev = "v${version}"; 11 hash = "sha256-A29OvGdG6PyeKMf5RarEOrfnNSmXhXri0AlECHWep6M="; 12 }; 13 14 cargoHash = "sha256-jZmFUvg6R15oL13OYKkirsepoJwOKCeXdKMcqhPEhNU="; 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 = "Small utility to safely format and print JSON objects in the commandline"; 27 mainProgram = "jf"; 28 homepage = "https://github.com/sayanarijit/jf"; 29 license = licenses.mit; 30 maintainers = [ maintainers.sayanarijit ]; 31 }; 32}