From 5e18006c3e1f875e055ce6ef3310576651e84f80 Mon Sep 17 00:00:00 2001 From: kpbaks Date: Mon, 12 May 2025 20:53:50 +0200 Subject: [PATCH] biff: init at 0.1.0 --- pkgs/by-name/bi/biff/package.nix | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/bi/biff/package.nix diff --git a/pkgs/by-name/bi/biff/package.nix b/pkgs/by-name/bi/biff/package.nix new file mode 100644 index 000000000000..496db4a2298d --- /dev/null +++ b/pkgs/by-name/bi/biff/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchFromGitHub, + nix-update-script, + rustPlatform, + versionCheckHook, + withLocaleSupport ? true, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "biff"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "BurntSushi"; + repo = "biff"; + tag = finalAttrs.version; + hash = "sha256-SkrPn6reekoJkKsMH2pB1FtYwObUcmA2W0wVvkbzTEE="; + }; + + buildFeatures = lib.optional withLocaleSupport "locale"; + + cargoHash = "sha256-x8nieQ1X5BLDTjYh67ApWDoS6chLy2DYAehgnPnhrVk="; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Command line tool for datetime arithmetic, parsing, formatting and more"; + homepage = "https://github.com/BurntSushi/biff"; + changelog = "https://github.com/BurntSushi/biff/blob/${finalAttrs.version}/CHANGELOG.md"; + license = [ + lib.licenses.mit + lib.licenses.unlicense + ]; + maintainers = [ lib.maintainers.kpbaks ]; + mainProgram = "biff"; + platforms = lib.platforms.all; + }; +})