rsbkb: 1.1 -> 1.2

This commit is contained in:
Aaron Jheng 2023-08-14 11:55:23 +08:00
parent d6c77843e1
commit 8a22de0a84
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

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";