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:
parent
b6fee1a4eb
commit
38442e8498
|
@ -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 //
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue