diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-08-23 10:09:14 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:07:03 +0000 |
commit | 63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f (patch) | |
tree | d58934cb48f9c953b19a0d0d5cffc0d0c5561471 /nixpkgs/pkgs/servers/news/leafnode/default.nix | |
parent | c4eef3dacb2a3d359561f30917d9e3cc4e041be9 (diff) | |
parent | 91a22f76cd1716f9d0149e8a5c68424bb691de15 (diff) | |
download | nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.gz nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.bz2 nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.lz nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.xz nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.zst nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix nixpkgs/pkgs/development/python-modules/django-mailman3/default.nix
Diffstat (limited to 'nixpkgs/pkgs/servers/news/leafnode/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/news/leafnode/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/servers/news/leafnode/default.nix b/nixpkgs/pkgs/servers/news/leafnode/default.nix index 32c59aea2bd3..01bd7b011a77 100644 --- a/nixpkgs/pkgs/servers/news/leafnode/default.nix +++ b/nixpkgs/pkgs/servers/news/leafnode/default.nix @@ -1,12 +1,12 @@ { lib, stdenv, fetchurl, pcre, libxcrypt }: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "leafnode"; - version = "2.0.0.alpha20121101a.12"; + version = "2.0.0.alpha20140727b"; src = fetchurl { - url = "http://home.pages.de/~mandree/leafnode/beta/leafnode-2.0.0.alpha20121101a.tar.bz2"; - sha256 = "096w4gxj08m3vwmyv4sxpmbl8dn6mzqfmrhc32jgyca6qzlrdin8"; + url = "http://krusty.dt.e-technik.tu-dortmund.de/~ma/leafnode/beta/leafnode-${finalAttrs.version}.tar.bz2"; + sha256 = "sha256-NOuiy7uHG3JMjV3UAtHDWK6yG6QmvrVljhVe0NdGEHU="; }; configureFlags = [ "--enable-runas-user=nobody" ]; @@ -15,24 +15,25 @@ stdenv.mkDerivation { substituteInPlace Makefile.in --replace 02770 0770 ''; + # configure uses id to check environment; we don't want this check preConfigure = '' - # configure uses id to check environment; we don't want this check sed -re 's/^ID[=].*/ID="echo whatever"/' -i configure ''; + # The is_validfqdn is far too restrictive, and only allows + # Internet-facing servers to run. In order to run leafnode via + # localhost only, we need to disable this check. postConfigure = '' - # The is_validfqdn is far too restrictive, and only allows - # Internet-facing servers to run. In order to run leafnode via - # localhost only, we need to disable this check. - sed -i validatefqdn.c -e 's/int is_validfqdn(const char \*f) {/int is_validfqdn(const char *f) { return 1;/;' + sed -i validatefqdn.c -e 's/int is_validfqdn(const char \*f) {/int is_validfqdn(const char *f) { return 1;/;' ''; buildInputs = [ pcre libxcrypt ]; meta = { - homepage = "http://leafnode.sourceforge.net/"; - description = "Implementation of a store & forward NNTP proxy"; + homepage = "https://leafnode.sourceforge.io/index.shtml"; + description = "Implementation of a store & forward NNTP proxy, under development"; license = lib.licenses.mit; platforms = lib.platforms.unix; + maintainers = [ lib.maintainers.ne9z ]; }; -} +}) |