Skip to content

Commit

Permalink
wp4nix: init at 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Apr 26, 2022
1 parent ebdb850 commit 3c0367b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/tools/wp4nix/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib, buildGoModule, fetchFromGitLab, nix, subversion }:

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=";
};

vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";

postPatch = ''
substituteInPlace main.go --replace nix-hash ${nix}/bin/nix-hash
substituteInPlace svn.go --replace '"svn"' '"${subversion}/bin/svn"'
'';

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.linux;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30143,6 +30143,8 @@ with pkgs;

wrapThunderbird = callPackage ../applications/networking/mailreaders/thunderbird/wrapper.nix { };

wp4nix = callPackage ../development/tools/wp4nix { };

wp-cli = callPackage ../development/tools/wp-cli { };

wsjtx = qt5.callPackage ../applications/radio/wsjtx { };
Expand Down

0 comments on commit 3c0367b

Please sign in to comment.