mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
42 lines
843 B
Nix
42 lines
843 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";
|
|
mainProgram = "wp4nix";
|
|
homepage = "https://git.helsinki.tools/helsinki-systems/wp4nix";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ onny ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|