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/tools/filesystems/moosefs | |
parent | 1d87f9866c857b72f60eb6c9f7f4701a38ac2136 (diff) | |
download | nixpkgs-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/tools/filesystems/moosefs')
-rw-r--r-- | pkgs/tools/filesystems/moosefs/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/moosefs/default.nix b/pkgs/tools/filesystems/moosefs/default.nix index e07ca270b5c..dc1d77bfa7e 100644 --- a/pkgs/tools/filesystems/moosefs/default.nix +++ b/pkgs/tools/filesystems/moosefs/default.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { "/usr/local/lib/pkgconfig" "/nonexistent" ''; - preBuild = lib.optional stdenv.isDarwin '' + preBuild = lib.optionalString stdenv.isDarwin '' substituteInPlace config.h --replace \ "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" \ "#undef HAVE_STRUCT_STAT_ST_BIRTHTIME" |