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:
parent
d6b11ed722
commit
2d9a604907
|
@ -5,8 +5,8 @@ let
|
||||||
inherit system;
|
inherit system;
|
||||||
}) lib runCommand writeText stdenv curl cacert nix;
|
}) lib runCommand writeText stdenv curl cacert nix;
|
||||||
|
|
||||||
sources = if builtins.pathExists ./sources.nix
|
sources = if builtins.pathExists ../upstream-info.nix
|
||||||
then import ./sources.nix
|
then import ../upstream-info.nix
|
||||||
else {};
|
else {};
|
||||||
|
|
||||||
bucketURL = "https://commondatastorage.googleapis.com/"
|
bucketURL = "https://commondatastorage.googleapis.com/"
|
||||||
|
@ -224,8 +224,8 @@ in rec {
|
||||||
mkAttr = key: val: "${mkIndent (indent + 1)}${key} = ${mkVal val};\n";
|
mkAttr = key: val: "${mkIndent (indent + 1)}${key} = ${mkVal val};\n";
|
||||||
attrLines = lib.mapAttrsToList mkAttr attrs;
|
attrLines = lib.mapAttrsToList mkAttr attrs;
|
||||||
in "{\n" + (lib.concatStrings attrLines) + (mkIndent indent) + "}";
|
in "{\n" + (lib.concatStrings attrLines) + (mkIndent indent) + "}";
|
||||||
in writeText "chromium-new-sources.nix" ''
|
in writeText "chromium-new-upstream-info.nix" ''
|
||||||
# This file is autogenerated from update.sh in the parent directory.
|
# This file is autogenerated from update.sh in the same directory.
|
||||||
${dumpAttrs 0 newChannels}
|
${dumpAttrs 0 newChannels}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
sp="$(nix-build -Q --no-out-link source/update.nix -A update)"
|
sp="$(nix-build -Q --no-out-link source/update.nix -A update)"
|
||||||
cat "$sp" > source/sources.nix
|
cat "$sp" > upstream-info.nix
|
||||||
|
|
Loading…
Reference in New Issue