diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/http/apache-modules/mod_timestamp/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/http/apache-modules/mod_timestamp/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/http/apache-modules/mod_timestamp/default.nix b/nixpkgs/pkgs/servers/http/apache-modules/mod_timestamp/default.nix new file mode 100644 index 000000000000..1dbe4101dfe6 --- /dev/null +++ b/nixpkgs/pkgs/servers/http/apache-modules/mod_timestamp/default.nix @@ -0,0 +1,48 @@ +{ + apr, + aprutil, + directoryListingUpdater, + fetchurl, + lib, + mod_ca, + pkg-config, + stdenv, +}: + +stdenv.mkDerivation rec { + pname = "mod_timestamp"; + version = "0.2.3"; + + src = fetchurl { + url = "https://redwax.eu/dist/rs/${pname}-${version}.tar.gz"; + hash = "sha256-X49gJ1wQtwQT3GOZkluxdMIY2ZRpM9Y7DZln6Ag9DvM="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + apr + aprutil + mod_ca + ]; + + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ + "-Wno-error=int-conversion" + "-Wno-error=implicit-function-declaration" + ]); + + inherit (mod_ca) configureFlags installFlags; + + passthru.updateScript = directoryListingUpdater { + url = "https://redwax.eu/dist/rs/"; + }; + + meta = with lib; { + description = "RedWax CA service module for issuing signed timestamps"; + homepage = "https://redwax.eu"; + changelog = "https://source.redwax.eu/projects/RS/repos/mod_timestamp/browse/ChangeLog"; + license = licenses.asl20; + platforms = platforms.unix; + maintainers = with maintainers; [ dirkx ]; + }; +} |