mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
rsbkb: 1.1 -> 1.2
This commit is contained in:
parent
d6c77843e1
commit
8a22de0a84
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user