summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-02-03 10:50:00 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-02-03 10:50:43 +0100
commit38442e849807920ac27fb8bd44acb0a37c0d4844 (patch)
treee404fa818848f212a364cc15e8ec076db24de39f
parentb6fee1a4eb5d3f4fc565c1f898c9852c3b519bea (diff)
downloadnixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.tar
nixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.tar.gz
nixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.tar.bz2
nixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.tar.lz
nixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.tar.xz
nixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.tar.zst
nixpkgs-38442e849807920ac27fb8bd44acb0a37c0d4844.zip
emscriptenStdenv: Allow overlay style mkDerivation
-rw-r--r--pkgs/development/em-modules/generic/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/em-modules/generic/default.nix b/pkgs/development/em-modules/generic/default.nix
index 2f8d7d878a8..eac0fcde53f 100644
--- a/pkgs/development/em-modules/generic/default.nix
+++ b/pkgs/development/em-modules/generic/default.nix
@@ -1,12 +1,20 @@
 { pkgs, lib, emscripten, python3 }:
 
+argsFun:
+
+let
+  wrapDerivation = f:
+    pkgs.stdenv.mkDerivation (finalAttrs:
+      f (lib.toFunction argsFun finalAttrs)
+    );
+in
+wrapDerivation (
 { buildInputs ? [], nativeBuildInputs ? []
 
 , enableParallelBuilding ? true
 
 , meta ? {}, ... } @ args:
 
-pkgs.stdenv.mkDerivation (
   args //
   {