nixpkgs/pkgs/development/tools/wp4nix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
815 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitLab
, nix
, subversion
, makeWrapper
}:
2022-04-18 09:47:38 +00:00
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;
2022-04-18 09:47:38 +00:00
nativeBuildInputs = [
makeWrapper
];
postInstall = ''
wrapProgram $out/bin/wp4nix \
--prefix PATH : ${lib.makeBinPath [ nix subversion ]}
2022-04-18 09:47:38 +00:00
'';
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 ];
2023-05-03 14:29:11 +00:00
platforms = platforms.unix;
2022-04-18 09:47:38 +00:00
};
}