Merge pull request #211487 from ProducerMatt/submit/rsbkb

rsbkb: init at 1.1
This commit is contained in:
Anderson Torres 2023-01-19 17:44:33 -03:00 committed by GitHub
commit 7543754ef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib,
fetchFromGitHub,
rustPlatform,
enableAppletSymlinks ? true,
}:
rustPlatform.buildRustPackage rec {
pname = "rsbkb";
version = "1.1";
src = fetchFromGitHub {
owner = "trou";
repo = "rsbkb";
rev = "release-${version}";
hash = "sha256-SqjeH0eOo+upSfPWh2IW75p1VHMqmzAbCchDrXhvMxs=";
};
cargoSha256 = "N3Xlw2JzTjqWLiVNCZaomsWQl330kGVlwdz4Gf05TGU=";
# Setup symlinks for all the utilities,
# busybox style
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";
homepage = "https://github.com/trou/rsbkb";
changelog = "https://github.com/trou/rsbkb/releases/tag/release-${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ProducerMatt ];
};
}

View file

@ -5475,6 +5475,8 @@ with pkgs;
rsbep = callPackage ../tools/backup/rsbep { };
rsbkb = callPackage ../tools/text/rsbkb { };
rsyslog = callPackage ../tools/system/rsyslog {
withHadoop = false; # Currently Broken
withKsi = false; # Currently Broken