File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments