chromium: Rename sources.nix to upstream-info.nix

The "sources.nix" also contains information about where to get binary
packages, so calling it "upstream-info.nix" fits better in terms of
naming.

Also, we're moving it away from the sources dir, because the latter will
soon vanish.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-03-20 16:48:54 +01:00
parent d6b11ed722
commit 2d9a604907
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961
3 changed files with 5 additions and 5 deletions

View File

@ -5,8 +5,8 @@ let
inherit system;
}) lib runCommand writeText stdenv curl cacert nix;
sources = if builtins.pathExists ./sources.nix
then import ./sources.nix
sources = if builtins.pathExists ../upstream-info.nix
then import ../upstream-info.nix
else {};
bucketURL = "https://commondatastorage.googleapis.com/"
@ -224,8 +224,8 @@ in rec {
mkAttr = key: val: "${mkIndent (indent + 1)}${key} = ${mkVal val};\n";
attrLines = lib.mapAttrsToList mkAttr attrs;
in "{\n" + (lib.concatStrings attrLines) + (mkIndent indent) + "}";
in writeText "chromium-new-sources.nix" ''
# This file is autogenerated from update.sh in the parent directory.
in writeText "chromium-new-upstream-info.nix" ''
# This file is autogenerated from update.sh in the same directory.
${dumpAttrs 0 newChannels}
'';
}

View File

@ -1,4 +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
cat "$sp" > upstream-info.nix