cardano-node: converted to flake

This commit is contained in:
Serĉanto de Scio 2023-08-03 21:29:09 +10:00
parent 623bbcca57
commit a782c104bf
Signed by: sercanto
GPG key ID: A4122FF3971B6865
3 changed files with 6071 additions and 62 deletions

6121
flake.lock

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,9 @@
description = "mio-ops deployment"; description = "mio-ops deployment";
inputs = { inputs = {
cardano-node.url = "github:input-output-hk/cardano-node/?ref=1.35.7";
daedalus.url = "github:input-output-hk/daedalus/?ref=5.2.0"; daedalus.url = "github:input-output-hk/daedalus/?ref=5.2.0";
iohkNix.url = "github:input-output-hk/iohk-nix/?ref=df1da282f996ec46b33379407df99613a1fbafdd";
nix.url = "github:NixOS/nix/?ref=2.13.3"; nix.url = "github:NixOS/nix/?ref=2.13.3";
nixpkgs.url = github:NixOS/nixpkgs/?ref=nixos-23.05; nixpkgs.url = github:NixOS/nixpkgs/?ref=nixos-23.05;
nixpkgsUnstable.url = github:NixOS/nixpkgs/?ref=nixos-unstable; nixpkgsUnstable.url = github:NixOS/nixpkgs/?ref=nixos-unstable;

View file

@ -3,15 +3,15 @@
config, config,
pkgs, pkgs,
lib, lib,
cardano-node,
iohkNix,
... ...
}: let }: let
sources = import ../nix/sources.nix; cardanoNodeProject = import (cardano-node + "/nix") {
cardanoNodeProject = import (sources.cardano-node + "/nix") { gitrev = cardano-node.rev;
gitrev = sources.cardano-node.rev;
}; };
iohkNix = import (sources.iohk-nix) {};
in { in {
imports = [../secrets/cardano/producers.nix "${sources.cardano-node}/nix/nixos"]; imports = [../secrets/cardano/producers.nix "${cardano-node.cardano-node}/nix/nixos"];
environment.systemPackages = [cardanoNodeProject.cardano-cli]; environment.systemPackages = [cardanoNodeProject.cardano-cli];