diff --git a/nix/sources.json b/nix/sources.json index 99fdd02..ba04d01 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -35,6 +35,12 @@ "url": "https://github.com/input-output-hk/iohk-nix/archive/df1da282f996ec46b33379407df99613a1fbafdd.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "mcwhirter-io": { + "sha256": "1izx568c152lcgf4ia2zcx83mvcbdr91k9nxqvsvk7y1fs0xk1cv", + "type": "tarball", + "url": "https://source.mcwhirter.io/craige/mcwhirter.io/archive/consensus.tar.gz", + "url_template": "https://source.mcwhirter.io/craige/mcwhirter.io/archive/consensus.tar.gz" + }, "niv": { "branch": "master", "description": "Easy dependency management for Nix projects", diff --git a/profiles/mcwhirter.io.nix b/profiles/mcwhirter.io.nix index 5a28945..8221b4c 100644 --- a/profiles/mcwhirter.io.nix +++ b/profiles/mcwhirter.io.nix @@ -3,12 +3,8 @@ { config, pkgs, ...}: let - mcwhirter-io = import (pkgs.fetchgit { - name = "mcwhirter-io-src"; - url = "https://source.mcwhirter.io/craige/mcwhirter.io.git"; - branchName = "consensus"; - sha256 = "sha256-m4XZgXbBn7n1xt2mGVJui+06UGdfqEjcY1SUwJAp/cc="; - }) { nixpkgs = pkgs; }; + sources = import ../nix/sources.nix; + mcwhirter-io = import sources.mcwhirter-io {}; webdomain = "mcwhirter.io"; in {