diff options
author | Sebastián Mancilla <smancill@smancill.dev> | 2021-08-17 20:14:20 -0400 |
---|---|---|
committer | Sebastián Mancilla <smancill@smancill.dev> | 2021-08-20 19:08:42 -0400 |
commit | 8f94a33b38fdd8b5e1c3e57303855364887ec332 (patch) | |
tree | b2482923cda2bb402fdde538e52dd021bf728d60 /pkgs/applications/science/physics | |
parent | 1d87f9866c857b72f60eb6c9f7f4701a38ac2136 (diff) | |
download | nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.gz nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.bz2 nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.lz nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.xz nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.zst nixlib-8f94a33b38fdd8b5e1c3e57303855364887ec332.zip |
treewide: ensure pre/post phase hooks are strings
Some derivations use lib.optional or lib.optionals when setting pre/post phase hooks. Ensure the proper lib.optionalString is used.
Diffstat (limited to 'pkgs/applications/science/physics')
-rw-r--r-- | pkgs/applications/science/physics/sherpa/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/science/physics/sherpa/default.nix b/pkgs/applications/science/physics/sherpa/default.nix index ba519cc2d032..eb718be12e4a 100644 --- a/pkgs/applications/science/physics/sherpa/default.nix +++ b/pkgs/applications/science/physics/sherpa/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1iwa17s8ipj6a2b8zss5csb1k5y9s5js38syvq932rxcinbyjsl4"; }; - postPatch = lib.optional (stdenv.hostPlatform.libc == "glibc") '' + postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") '' sed -ie '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C ''; |