depot/third_party/nixpkgs/pkgs/development/tools/wp4nix/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

40 lines
815 B
Nix

{ lib
, buildGoModule
, fetchFromGitLab
, nix
, subversion
, makeWrapper
}:
buildGoModule rec {
pname = "wp4nix";
version = "1.0.0";
src = fetchFromGitLab {
domain = "git.helsinki.tools";
owner = "helsinki-systems";
repo = "wp4nix";
rev = "v${version}";
sha256 = "sha256-WJteeFUMr684yZEtUP13MqRjJ1UAeo48AzOPdLEE65w=";
};
vendorHash = null;
nativeBuildInputs = [
makeWrapper
];
postInstall = ''
wrapProgram $out/bin/wp4nix \
--prefix PATH : ${lib.makeBinPath [ nix subversion ]}
'';
meta = with lib; {
description = "Packaging helper for Wordpress themes and plugins";
homepage = "https://git.helsinki.tools/helsinki-systems/wp4nix";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
platforms = platforms.unix;
};
}