Merge pull request #249022 from aaronjheng/rsbkb

rsbkb: 1.1 -> 1.2
This commit is contained in:
Nick Cao
2023-08-13 22:42:57 -06:00
committed by GitHub
+10 -10
View File
@@ -1,29 +1,29 @@
{ lib,
fetchFromGitHub,
rustPlatform,
enableAppletSymlinks ? true,
{ lib
, fetchFromGitHub
, rustPlatform
, enableAppletSymlinks ? true
}:
rustPlatform.buildRustPackage rec {
pname = "rsbkb";
version = "1.1";
version = "1.2";
src = fetchFromGitHub {
owner = "trou";
repo = "rsbkb";
rev = "release-${version}";
hash = "sha256-SqjeH0eOo+upSfPWh2IW75p1VHMqmzAbCchDrXhvMxs=";
hash = "sha256-Y6YTjEbefNUPcl6rNYWVZLGZYTUPr5pvfLabS+zDWqA=";
};
cargoSha256 = "N3Xlw2JzTjqWLiVNCZaomsWQl330kGVlwdz4Gf05TGU=";
cargoHash = "sha256-RMX+ZdPaqtqRJvhHFJJrPZnBGwQwZSCXNg1oNo+v2+8=";
# Setup symlinks for all the utilities,
# busybox style
postInstall = lib.optionalString enableAppletSymlinks
''
postInstall = lib.optionalString enableAppletSymlinks ''
cd $out/bin || exit 1
path="$(realpath --canonicalize-missing ./rsbkb)"
for i in $(./rsbkb list) ; do ln -s $path $i ; done
'';
'';
meta = with lib; {
description = "Command line tools to encode/decode things";