Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 42 lines 873 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "writefreely"; 10 version = "0.15.1"; 11 12 src = fetchFromGitHub { 13 owner = "writefreely"; 14 repo = "writefreely"; 15 rev = "v${version}"; 16 sha256 = "sha256-Qr31XSbAckLElD81yxD+K7tngWECQ+wyuESC+biAbyw="; 17 }; 18 19 vendorHash = "sha256-HmEh8WmKbdAimvzsAiaXcqSXoU1DJx06+s1EH1JZmwo="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 "-X github.com/writefreely/writefreely.softwareVer=${version}" 25 ]; 26 27 tags = [ "sqlite" ]; 28 29 subPackages = [ "cmd/writefreely" ]; 30 31 passthru.tests = { 32 inherit (nixosTests) writefreely; 33 }; 34 35 meta = with lib; { 36 description = "Build a digital writing community"; 37 homepage = "https://github.com/writefreely/writefreely"; 38 license = licenses.agpl3Only; 39 maintainers = with maintainers; [ soopyc ]; 40 mainProgram = "writefreely"; 41 }; 42}