mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
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;
|
||||
}) 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}
|
||||
'';
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user