From b758be6c3bed5ed81365aac1ceb472808de3b7f9 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Wed, 3 Nov 2021 18:24:52 +1000 Subject: [PATCH] mcwhirter.io: switched to using niv --- nix/sources.json | 6 ++++++ profiles/mcwhirter.io.nix | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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 {