mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
biff: init at 0.1.0
This commit is contained in:
parent
6a4e8e9e8a
commit
5e18006c3e
1 changed files with 41 additions and 0 deletions
41
pkgs/by-name/bi/biff/package.nix
Normal file
41
pkgs/by-name/bi/biff/package.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue