Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 40 lines 1.1 kB view raw
1{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }: 2 3buildGoModule rec { 4 pname = "documize-community"; 5 version = "3.9.0"; 6 7 src = fetchFromGitHub { 8 owner = "documize"; 9 repo = "community"; 10 rev = "v${version}"; 11 sha256 = "sha256-Kv4BsFB08rkGRkePFIkjjuhK1TnLPS4m+PUlgKG5cTQ="; 12 }; 13 14 vendorSha256 = null; 15 16 doCheck = false; 17 18 nativeBuildInputs = [ go-bindata go-bindata-assetfs ]; 19 20 # This is really weird, but they've managed to screw up 21 # their folder structure enough, you can only build by 22 # literally cding into this folder. 23 preBuild = "cd edition"; 24 25 subPackages = [ "." ]; 26 27 passthru.tests = { inherit (nixosTests) documize; }; 28 29 postInstall = '' 30 mv $out/bin/edition $out/bin/documize 31 ''; 32 33 meta = with lib; { 34 description = "Open source Confluence alternative for internal & external docs built with Golang + EmberJS"; 35 license = licenses.agpl3; 36 maintainers = with maintainers; [ ]; 37 mainProgram = "documize"; 38 homepage = "https://www.documize.com/"; 39 }; 40}