summary refs log tree commit diff
path: root/pkgs/applications/science/physics
diff options
context:
space:
mode:
authorSebastián Mancilla <smancill@smancill.dev>2021-08-17 20:14:20 -0400
committerSebastián Mancilla <smancill@smancill.dev>2021-08-20 19:08:42 -0400
commit8f94a33b38fdd8b5e1c3e57303855364887ec332 (patch)
treeb2482923cda2bb402fdde538e52dd021bf728d60 /pkgs/applications/science/physics
parent1d87f9866c857b72f60eb6c9f7f4701a38ac2136 (diff)
downloadnixpkgs-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar
nixpkgs-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.gz
nixpkgs-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.bz2
nixpkgs-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.lz
nixpkgs-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.xz
nixpkgs-8f94a33b38fdd8b5e1c3e57303855364887ec332.tar.zst
nixpkgs-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.nix2
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 ba519cc2d03..eb718be12e4 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
   '';