1{
2 lib,
3 buildGoModule,
4 fetchFromGitLab,
5 nix,
6 subversion,
7 makeWrapper,
8}:
9
10buildGoModule rec {
11 pname = "wp4nix";
12 version = "1.0.0";
13
14 src = fetchFromGitLab {
15 domain = "git.helsinki.tools";
16 owner = "helsinki-systems";
17 repo = "wp4nix";
18 rev = "v${version}";
19 sha256 = "sha256-WJteeFUMr684yZEtUP13MqRjJ1UAeo48AzOPdLEE65w=";
20 };
21
22 vendorHash = null;
23
24 nativeBuildInputs = [
25 makeWrapper
26 ];
27
28 postInstall = ''
29 wrapProgram $out/bin/wp4nix \
30 --prefix PATH : ${
31 lib.makeBinPath [
32 nix
33 subversion
34 ]
35 }
36 '';
37
38 meta = with lib; {
39 description = "Packaging helper for Wordpress themes and plugins";
40 mainProgram = "wp4nix";
41 homepage = "https://git.helsinki.tools/helsinki-systems/wp4nix";
42 license = licenses.mit;
43 maintainers = with maintainers; [ onny ];
44 platforms = platforms.unix;
45 };
46}