From 2d9a604907432bce60345545f57b3cdeffc31dac Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 20 Mar 2016 16:48:54 +0100 Subject: [PATCH] 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 --- .../networking/browsers/chromium/source/update.nix | 8 ++++---- pkgs/applications/networking/browsers/chromium/update.sh | 2 +- .../chromium/{source/sources.nix => upstream-info.nix} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename pkgs/applications/networking/browsers/chromium/{source/sources.nix => upstream-info.nix} (100%) diff --git a/pkgs/applications/networking/browsers/chromium/source/update.nix b/pkgs/applications/networking/browsers/chromium/source/update.nix index d4dc3b59cbc7..41fac2d781d1 100644 --- a/pkgs/applications/networking/browsers/chromium/source/update.nix +++ b/pkgs/applications/networking/browsers/chromium/source/update.nix @@ -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} ''; } diff --git a/pkgs/applications/networking/browsers/chromium/update.sh b/pkgs/applications/networking/browsers/chromium/update.sh index 14f3dc6bd9d3..461d8b7dd400 100755 --- a/pkgs/applications/networking/browsers/chromium/update.sh +++ b/pkgs/applications/networking/browsers/chromium/update.sh @@ -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 diff --git a/pkgs/applications/networking/browsers/chromium/source/sources.nix b/pkgs/applications/networking/browsers/chromium/upstream-info.nix similarity index 100% rename from pkgs/applications/networking/browsers/chromium/source/sources.nix rename to pkgs/applications/networking/browsers/chromium/upstream-info.nix