From d7295b9fe35642914d7a049c30c180eb4d772ef2 Mon Sep 17 00:00:00 2001 From: iko Date: Wed, 24 Feb 2021 21:42:16 +0300 Subject: [PATCH] Use proto3-suite from github --- default.nix | 7 ++++++- nix/sources.json | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 3aa4c96..1fa7444 100644 --- a/default.nix +++ b/default.nix @@ -8,7 +8,12 @@ let broken = false; }); overrides = (hself: hsuper: { - proto3-suite = nixpkgs.haskell.lib.dontCheck (nixpkgs.haskell.lib.doJailbreak (unbreak hsuper.proto3-suite)); + proto3-suite = nixpkgs.haskell.lib.dontCheck ( + nixpkgs.haskell.lib.doJailbreak ( + hsuper.callCabal2nix "proto3-suite" + sources.proto3-suite { } + ) + ); proto3-wire = hsuper.callHackageDirect { diff --git a/nix/sources.json b/nix/sources.json index a61d454..4891d8a 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -23,6 +23,18 @@ "url": "https://github.com/NixOS/nixpkgs/archive/a346c68411cc2fe0392e8905f9300fa0973cf1b4.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "proto3-suite": { + "branch": "master", + "description": " Haskell Protobuf Implementation", + "homepage": null, + "owner": "awakesecurity", + "repo": "proto3-suite", + "rev": "0af901f9ef3b9719e08eae4fab8fd700d6c8047a", + "sha256": "0mpy35r6qd1v5sixhy2lqcn5x81rfj4dc079g1kpa4fb1f23dbha", + "type": "tarball", + "url": "https://github.com/awakesecurity/proto3-suite/archive/0af901f9ef3b9719e08eae4fab8fd700d6c8047a.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "sawtooth-core": { "branch": "master", "description": "Core repository for Sawtooth Distributed Ledger",