about summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorStanisław Pitucha <git@viraptor.info>2022-10-31 21:23:03 +1100
committerGitHub <noreply@github.com>2022-10-31 21:23:03 +1100
commit08fbb5de2d9ca3989d5e591bab24fbc04abd6ba6 (patch)
treeb61a05eac49aede8b8b70154de62123ddc5eeb58 /pkgs/servers/http
parent49ae64fb607da5dbfb6df4995877be0f0445c0ca (diff)
parentb43605fb031248ddb615b7caf562ccfcb49f910d (diff)
Merge pull request #190325 from fgaz/merecat/init
merecat: init at 2.31
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/merecat/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/servers/http/merecat/default.nix b/pkgs/servers/http/merecat/default.nix
new file mode 100644
index 0000000000000..b655381a08195
--- /dev/null
+++ b/pkgs/servers/http/merecat/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, pkg-config
+, libconfuse
+, libxcrypt
+, testers
+, merecat
+, nixosTests
+}:
+
+stdenv.mkDerivation rec {
+  pname = "merecat";
+  version = "2.31";
+
+  # Or, already reconf'd: ftp://ftp.troglobit.com/merecat/merecat-${version}.tar.xz
+  src = fetchFromGitHub {
+    owner = "troglobit";
+    repo = "merecat";
+    rev = "v${version}";
+    hash = "sha256-oIzOXUnCFqd3HPyKp58r+enRRpaE7f9hqNITtxCCB7I=";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkg-config
+  ];
+
+  buildInputs = [
+    libconfuse
+    libxcrypt
+  ];
+
+  passthru.tests = {
+    testVersion = testers.testVersion {
+      package = merecat;
+      command = "merecat -V";
+    };
+    inherit (nixosTests) merecat;
+  };
+
+  meta = with lib; {
+    description = "Small and made-easy HTTP/HTTPS server based on Jef Poskanzer's thttpd";
+    homepage = "https://troglobit.com/projects/merecat/";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ fgaz ];
+    platforms = platforms.all;
+    # Strange header and/or linker errors
+    broken = stdenv.isDarwin;
+  };
+}