1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

emscriptenStdenv: Allow overlay style mkDerivation

This commit is contained in:
Robert Hensing 2023-02-03 10:50:00 +01:00
parent b6fee1a4eb
commit 38442e8498

View file

@ -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 //
{