chromium/update.sh: Allow to be called out-of-tree

Changing the working directory to
pkgs/applications/networking/browsers/chromium is a bit annoying, so
let's make sure the script can be called from anywhere.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-03-13 12:17:30 +01:00
parent f7e2171937
commit a62f100ec3
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

@ -1,3 +1,4 @@
#!/bin/sh -e
cd "$(dirname "$0")"
sp="$(nix-build -Q --no-out-link source/update.nix -A update)"
cat "$sp" > source/sources.nix