@@ -1,50 +0,0 @@
1−{ llvmPackages, lib, stdenv, fetchFromGitHub
2−, python36Packages, which, pkg-config, curl, git, gettext, jansson
3−
4−# Optional overrides
5−, maxFileSize ? 64 # in MB
6−, provider ? "https://ptpb.pw/"
7−}:
8−
9−llvmPackages.stdenv.mkDerivation rec {
10− version = "unstable-2018-01-11";
11− name = "pbpst-${version}";
12−
13− src = fetchFromGitHub {
14− owner = "HalosGhost";
15− repo = "pbpst";
16− rev = "ecbe08a0b72a6e4212f09fc6cf52a73506992346";
17− sha256 = "0dwhmw1dg4hg75nlvk5kmvv3slz2n3b9x65q4ig16agwqfsp4mdm";
18− };
19−
20− nativeBuildInputs = [
21− python36Packages.sphinx
22− which
23− pkg-config
24− curl
25− git
26− gettext
27− ];
28− buildInputs = [ curl jansson ];
29−
30− patchPhase = ''
31− patchShebangs ./configure
32−
33− # Remove hardcoded check for libs in /usr/lib/
34− sed -e '64,67d' -i ./configure
35− '';
36−
37− configureFlags = [
38− "--file-max=${toString (maxFileSize * 1024 * 1024)}" # convert to bytes
39− "--provider=${provider}"
40− ];
41−
42− meta = with lib; {
43− description = "A command-line libcurl C client for pb deployments";
44− inherit (src.meta) homepage;
45− license = licenses.gpl2;
46− platforms = platforms.linux;
47− maintainers = with maintainers; [ tmplt ];
48− broken = true;
49− };
50−}