Skip to content

Commit c62354f

Browse files
biff: init at 0.1.0 (NixOS#406538)
2 parents ed01fc1 + 5e18006 commit c62354f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

pkgs/by-name/bi/biff/package.nix

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
nix-update-script,
5+
rustPlatform,
6+
versionCheckHook,
7+
withLocaleSupport ? true,
8+
}:
9+
rustPlatform.buildRustPackage (finalAttrs: {
10+
pname = "biff";
11+
version = "0.1.0";
12+
13+
src = fetchFromGitHub {
14+
owner = "BurntSushi";
15+
repo = "biff";
16+
tag = finalAttrs.version;
17+
hash = "sha256-SkrPn6reekoJkKsMH2pB1FtYwObUcmA2W0wVvkbzTEE=";
18+
};
19+
20+
buildFeatures = lib.optional withLocaleSupport "locale";
21+
22+
cargoHash = "sha256-x8nieQ1X5BLDTjYh67ApWDoS6chLy2DYAehgnPnhrVk=";
23+
24+
doInstallCheck = true;
25+
nativeInstallCheckInputs = [ versionCheckHook ];
26+
27+
passthru.updateScript = nix-update-script { };
28+
29+
meta = {
30+
description = "Command line tool for datetime arithmetic, parsing, formatting and more";
31+
homepage = "https://github.com/BurntSushi/biff";
32+
changelog = "https://github.com/BurntSushi/biff/blob/${finalAttrs.version}/CHANGELOG.md";
33+
license = [
34+
lib.licenses.mit
35+
lib.licenses.unlicense
36+
];
37+
maintainers = [ lib.maintainers.kpbaks ];
38+
mainProgram = "biff";
39+
platforms = lib.platforms.all;
40+
};
41+
})

0 commit comments

Comments
 (0)