Skip to content

Commit d98abf5

Browse files
authored
bold: init at 0.1.0 (#373289)
2 parents a09e851 + 58caa68 commit d98abf5

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

pkgs/by-name/bo/bold/deps.nix

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/by-name/bo/bold/package.nix

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
callPackage,
6+
zig_0_13,
7+
versionCheckHook,
8+
gitUpdater,
9+
}:
10+
11+
stdenv.mkDerivation (finalAttrs: {
12+
pname = "bold";
13+
version = "0.1.0";
14+
15+
src = fetchFromGitHub {
16+
owner = "kubkon";
17+
repo = "bold";
18+
tag = "v${finalAttrs.version}";
19+
hash = "sha256-7sn/8SIoT/JGdza8SpX+8usiVhqugVVMaLU1a1oMdj8=";
20+
};
21+
22+
postPatch = ''
23+
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
24+
'';
25+
26+
nativeBuildInputs = [
27+
zig_0_13.hook
28+
];
29+
30+
doInstallCheck = true;
31+
nativeInstallCheckInputs = [ versionCheckHook ];
32+
versionCheckProgramArg = [ "-v" ];
33+
34+
passthru = {
35+
updateScript = gitUpdater { rev-prefix = "v"; };
36+
};
37+
38+
meta = {
39+
description = "Drop-in replacement for Apple system linker ld";
40+
homepage = "https://github.com/kubkon/bold";
41+
changelog = "https://github.com/kubkon/bold/releases/tag/v${finalAttrs.version}";
42+
license = lib.licenses.mit;
43+
maintainers = with lib.maintainers; [ DimitarNestorov ];
44+
platforms = lib.platforms.darwin;
45+
mainProgram = "bold";
46+
};
47+
})

0 commit comments

Comments
 (0)