From 5bb26d12a9a62beba3fe19a62f667ab6f31e1026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 29 Jun 2018 17:35:13 +0100 Subject: [PATCH] default.nix: fix indentation --- default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/default.nix b/default.nix index 3ab8965af..65cc6301f 100644 --- a/default.nix +++ b/default.nix @@ -6,22 +6,21 @@ let manifest = (builtins.fromJSON (builtins.readFile ./repos.json)).repos; lockedRevisions = (builtins.fromJSON (builtins.readFile ./repos.json.lock)).repos; - repoSource = name: attr: + repoSource = name: attr: let revision = lockedRevisions.${name}; in if lib.hasPrefix "https://github.com" attr.url then - fetchzip { - url = "${attr.url}/archive/${revision.rev}.zip"; + fetchzip { + url = "${attr.url}/archive/${revision.rev}.zip"; inherit (revision) sha256; - } + } else fetchgit { inherit (attr) url; inherit (revision) rev sha256; }; - createRepo = (name: attr: callPackages (repoSource name attr) {}); - + createRepo = (name: attr: callPackages (repoSource name attr) {}); in { repos = lib.mapAttrs createRepo manifest; }