chromium/source: Propagate system attribute.

The system attribute was already there in the function head of the
shared update helper but it actually wasn't used and thus later the
import of <nixpkgs> was done using builtins.currentSystem instead of the
system attribute inherited from the source derivation.

Now we correctly propagate the attribute, so that even when running a
64bit kernel you can run a 32bit Chromium with binary plugins.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-05-04 15:01:06 +02:00
parent 5bfe944907
commit 4f3085d5f8
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,7 +1,9 @@
{ system ? builtins.currentSystem }:
let
inherit (import <nixpkgs> {}) lib writeText stdenv;
inherit (import <nixpkgs> {
inherit system;
}) lib writeText stdenv;
sources = if builtins.pathExists ./sources.nix
then import ./sources.nix