2024-05-10 08:30:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, testers }:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2024-05-10 08:30:51 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-08-02 09:38:45 +00:00
|
|
|
pname = "uucp";
|
|
|
|
version = "1.07";
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2008-04-11 09:27:18 +00:00
|
|
|
src = fetchurl {
|
2024-05-10 08:30:51 +00:00
|
|
|
url = "mirror://gnu/uucp/uucp-${finalAttrs.version}.tar.gz";
|
2008-04-11 09:27:18 +00:00
|
|
|
sha256 = "0b5nhl9vvif1w3wdipjsk8ckw49jj1w85xw1mmqi3zbcpazia306";
|
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2010-09-07 08:02:36 +00:00
|
|
|
|
2017-06-16 12:11:02 +00:00
|
|
|
prePatch = ''
|
2017-06-17 09:44:33 +00:00
|
|
|
# do not set sticky bit in nix store
|
2024-05-10 08:27:14 +00:00
|
|
|
substituteInPlace Makefile.am \
|
|
|
|
--replace-fail 4555 0555
|
|
|
|
sed -i '/chown $(OWNER)/d' Makefile.am
|
|
|
|
|
|
|
|
# don't reply on implicitly defined `exit` function in `HAVE_VOID` test:
|
|
|
|
substituteInPlace configure.in \
|
|
|
|
--replace-fail '(void) exit (0)' '(void) (0)'
|
2017-06-16 12:11:02 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-10 08:27:14 +00:00
|
|
|
# Regenerate `configure`; the checked in version was generated in 2002 and
|
|
|
|
# contains snippets like `main(){return(0);}` that modern compilers dislike.
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2022-10-18 03:18:22 +00:00
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
|
|
|
|
2024-05-10 08:30:51 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
|
2008-04-11 09:27:18 +00:00
|
|
|
meta = {
|
|
|
|
description = "Unix-unix cp over serial line, also includes cu program";
|
2024-05-10 08:30:51 +00:00
|
|
|
mainProgram = "uucp";
|
2010-09-07 08:02:36 +00:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Taylor UUCP is a free implementation of UUCP and is the standard
|
|
|
|
UUCP used on the GNU system. If you don't know what UUCP is chances
|
|
|
|
are, nowadays, that you won't need it. If you do need it, you've
|
|
|
|
just found one of the finest UUCP implementations available.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/uucp/uucp.html";
|
2010-09-07 08:02:36 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2010-09-07 08:02:36 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.all;
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = [ ];
|
2008-04-11 09:27:18 +00:00
|
|
|
};
|
2024-05-10 08:30:51 +00:00
|
|
|
})
|