diff options
author | Lizard <tmplt@dragons.rocks> | 2018-10-30 17:33:59 +0100 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-10-30 17:33:59 +0100 |
commit | 39662cf61c42a6c89ee8dc5b95bbf89c33f8bcdc (patch) | |
tree | 37babf44ced328d6226ef9674480204966240d0a /pkgs/applications/misc/pbpst/default.nix | |
parent | 1873e39acfdde68249314e757de6e35c0667812f (diff) |
pbpst: init at unstable-2018-01-11 (#49459)
Diffstat (limited to 'pkgs/applications/misc/pbpst/default.nix')
-rw-r--r-- | pkgs/applications/misc/pbpst/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pbpst/default.nix b/pkgs/applications/misc/pbpst/default.nix new file mode 100644 index 0000000000000..fcf88200133c4 --- /dev/null +++ b/pkgs/applications/misc/pbpst/default.nix @@ -0,0 +1,49 @@ +{ llvmPackages, stdenv, fetchFromGitHub +, python36Packages, which, pkgconfig, curl, git, gettext, jansson + +# Optional overrides +, maxFileSize ? 64 # in MB +, provider ? "https://ptpb.pw/" +}: + +llvmPackages.stdenv.mkDerivation rec { + version = "unstable-2018-01-11"; + name = "pbpst-${version}"; + + src = fetchFromGitHub { + owner = "HalosGhost"; + repo = "pbpst"; + rev = "ecbe08a0b72a6e4212f09fc6cf52a73506992346"; + sha256 = "0dwhmw1dg4hg75nlvk5kmvv3slz2n3b9x65q4ig16agwqfsp4mdm"; + }; + + nativeBuildInputs = [ + python36Packages.sphinx + which + pkgconfig + curl + git + gettext + ]; + buildInputs = [ curl jansson ]; + + patchPhase = '' + patchShebangs ./configure + + # Remove hardcoded check for libs in /usr/lib/ + sed -e '64,67d' -i ./configure + ''; + + configureFlags = [ + "--file-max=${toString (maxFileSize * 1024 * 1024)}" # convert to bytes + "--provider=${provider}" + ]; + + meta = with stdenv.lib; { + description = "A command-line libcurl C client for pb deployments"; + inherit (src.meta) homepage; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ tmplt ]; + }; +} |