diff --git a/pkgs/by-name/un/untie/add-define-gnu-source.patch b/pkgs/by-name/un/untie/add-define-gnu-source.patch new file mode 100644 index 000000000000..aaaf99149e31 --- /dev/null +++ b/pkgs/by-name/un/untie/add-define-gnu-source.patch @@ -0,0 +1,12 @@ +diff --git a/untie.c b/untie.c +index f08a10d..d3d20b4 100644 +--- a/untie.c ++++ b/untie.c +@@ -18,6 +18,7 @@ + * Copyright (c) 2006, 2007 Guillaume Chazarain + */ + ++#define _GNU_SOURCE + #include + #include + #include diff --git a/pkgs/by-name/un/untie/package.nix b/pkgs/by-name/un/untie/package.nix index 9dee6d7e422d..8ef7c90e5e3e 100644 --- a/pkgs/by-name/un/untie/package.nix +++ b/pkgs/by-name/un/untie/package.nix @@ -4,22 +4,27 @@ fetchurl, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "untie"; version = "0.3"; src = fetchurl { - url = "http://guichaz.free.fr/untie/files/${pname}-${version}.tar.bz2"; + url = "http://guichaz.free.fr/untie/files/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2"; sha256 = "1334ngvbi4arcch462mzi5vxvxck4sy1nf0m58116d9xmx83ak0m"; }; + patches = [ + # fix build with gcc14 + ./add-define-gnu-source.patch + ]; + makeFlags = [ "PREFIX=$(out)" ]; - meta = with lib; { + meta = { description = "Tool to run processes untied from some of the namespaces"; mainProgram = "untie"; - maintainers = with maintainers; [ raskin ]; - platforms = platforms.linux; - license = licenses.gpl2Plus; + maintainers = with lib.maintainers; [ raskin ]; + platforms = lib.platforms.linux; + license = lib.licenses.gpl2Plus; }; passthru = { @@ -27,4 +32,4 @@ stdenv.mkDerivation rec { downloadPage = "http://guichaz.free.fr/untie"; }; }; -} +})