jf: 0.2.2 -> 0.3.3
Also, install manpage.
This commit is contained in:
parent
0e3c31e09e
commit
acb67f20f7
|
@ -1,17 +1,26 @@
|
||||||
{ lib, stdenv, rustPlatform, fetchFromGitHub }:
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "jf";
|
pname = "jf";
|
||||||
version = "0.2.2";
|
version = "0.3.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sayanarijit";
|
owner = "sayanarijit";
|
||||||
repo = "jf";
|
repo = "jf";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-6x/WDsDHkQVjiere17XMY3lxG2M5bmTtdH1rMjii+NY=";
|
hash = "sha256-dZX8C/nJaKfgHsUAXR1DRZS+PWDZF+QDVpOSaOlwFp4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-W8/6EiqevF7mX2cgdv9/USVnSVxQ/J6I3Cq/UJyZOxU=";
|
cargoHash = "sha256-H9UZCKy+0xL6J8f/6yCiM4X5TMOrN8UEEDwxqNR7xQY=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
# skip auto manpage update
|
||||||
|
buildNoDefaultFeatures = true;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage assets/jf.1
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A small utility to safely format and print JSON objects in the commandline";
|
description = "A small utility to safely format and print JSON objects in the commandline";
|
||||||
|
|
Loading…
Reference in a new issue