Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 makeBinaryWrapper, 6 installShellFiles, 7 git, 8}: 9 10buildGoModule rec { 11 pname = "fac"; 12 version = "2.0.0-unstable-2023-12-29"; 13 14 src = fetchFromGitHub { 15 owner = "mkchoi212"; 16 repo = "fac"; 17 rev = "d232b05149564701ca3a21cd1a07be2540266cb2"; 18 hash = "sha256-puSHbrzxTUebK1qRdWh71jY/f7TKgONS45T7PcZcy00="; 19 }; 20 21 vendorHash = "sha256-bmGRVTjleAFS5GGf2i/zN8k3SBtaEc3RbKSVZyF6eN4="; 22 23 nativeBuildInputs = [ 24 makeBinaryWrapper 25 installShellFiles 26 ]; 27 28 postInstall = '' 29 wrapProgram $out/bin/fac \ 30 --prefix PATH : ${lib.makeBinPath [ git ]} 31 32 # Install man page, not installed by default 33 installManPage assets/doc/fac.1 34 ''; 35 36 meta = { 37 changelog = "https://github.com/mkchoi212/fac/releases/tag/v${version}"; 38 description = "CUI for fixing git conflicts"; 39 homepage = "https://github.com/mkchoi212/fac"; 40 license = lib.licenses.mit; 41 mainProgram = "fac"; 42 maintainers = [ ]; 43 }; 44}