From 7ddee326c2b49e0da7d96801fa703fe884455871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 28 Sep 2022 16:48:34 +0200 Subject: [PATCH] gromacs*: fixup paths in .pc files --- .../science/molecular-dynamics/gromacs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/science/molecular-dynamics/gromacs/default.nix b/pkgs/applications/science/molecular-dynamics/gromacs/default.nix index bababa50c59e..125283589aef 100644 --- a/pkgs/applications/science/molecular-dynamics/gromacs/default.nix +++ b/pkgs/applications/science/molecular-dynamics/gromacs/default.nix @@ -63,6 +63,12 @@ in stdenv.mkDerivation rec { ] ) ++ lib.optional enableCuda "-DGMX_GPU=CUDA"; + postFixup = '' + substituteInPlace "$out"/lib/pkgconfig/*.pc \ + --replace '=''${prefix}//' '=/' \ + --replace "$out/$out/" "$out/" + ''; + meta = with lib; { homepage = "http://www.gromacs.org"; license = licenses.gpl2;