diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-19 13:56:56 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-19 13:56:56 -0400 |
commit | e6077fbc46561fbe85c40a43b2b0e86e939f984f (patch) | |
tree | 038bfd2b546561425c96deccd7d856f96297ea02 /pkgs/games | |
parent | 0062d0f11d163ca720134f8d5a18bc1696eab1ae (diff) |
Remove getConfig helper function
An expression like ‘getConfig [ "cabal" "libraryProfiling" ] false’ can be written more concisely as ‘config.cabal.libraryProfiling or false’.
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/oilrush/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/games/oilrush/default.nix b/pkgs/games/oilrush/default.nix index 4605f04e3ae56..339c3bbd1a844 100644 --- a/pkgs/games/oilrush/default.nix +++ b/pkgs/games/oilrush/default.nix @@ -1,11 +1,12 @@ -{ stdenv, getConfig, fetchurl, libX11, libXext, libXinerama, libXrandr +{ stdenv, config, fetchurl, libX11, libXext, libXinerama, libXrandr , libXrender, fontconfig, freetype, openal }: + stdenv.mkDerivation { name = "oilrush"; src = let - url = getConfig [ "oilrush" "url" ] null; - sha256 = getConfig [ "oilrush" "sha256" ] null; + url = config.oilrush.url or null; + sha256 = config.oilrush.sha256 or null; in assert url != null && sha256 != null; fetchurl { inherit url sha256; }; |