about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/althttpd/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/althttpd/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/althttpd/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/althttpd/default.nix b/nixpkgs/pkgs/servers/althttpd/default.nix
new file mode 100644
index 000000000000..670a228a1e94
--- /dev/null
+++ b/nixpkgs/pkgs/servers/althttpd/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, fetchfossil, openssl }:
+
+stdenv.mkDerivation rec {
+  pname = "althttpd";
+  version = "unstable-2023-08-12";
+
+  src = fetchfossil {
+    url = "https://sqlite.org/althttpd/";
+    rev = "c0bdc68e6c56ef25";
+    sha256 = "sha256-VoDR5MlVlvar9wYA0kUhvDQVjxDwsZlqrNR3u4Tqw5c=";
+  };
+
+  buildInputs = [ openssl ];
+
+  makeFlags = [ "CC:=$(CC)" ];
+
+  installPhase = ''
+    install -Dm755 -t $out/bin althttpd
+  '';
+
+  meta = with lib; {
+    description = "The Althttpd webserver";
+    homepage = "https://sqlite.org/althttpd/";
+    license = licenses.publicDomain;
+    maintainers = with maintainers; [ siraben ];
+    platforms = platforms.all;
+    mainProgram = "althttpd";
+  };
+}