Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.6 KiB
Nix
64 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoreconfHook,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "uucp";
|
|
version = "1.07";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/uucp/uucp-${finalAttrs.version}.tar.gz";
|
|
sha256 = "0b5nhl9vvif1w3wdipjsk8ckw49jj1w85xw1mmqi3zbcpazia306";
|
|
};
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
prePatch = ''
|
|
# do not set sticky bit in nix store
|
|
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)'
|
|
'';
|
|
|
|
patches = [
|
|
./socklen_t.patch
|
|
];
|
|
|
|
# Regenerate `configure`; the checked in version was generated in 2002 and
|
|
# contains snippets like `main(){return(0);}` that modern compilers dislike.
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = {
|
|
description = "Unix-unix cp over serial line, also includes cu program";
|
|
mainProgram = "uucp";
|
|
|
|
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.
|
|
'';
|
|
|
|
homepage = "https://www.gnu.org/software/uucp/uucp.html";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
})
|