init: dcrd, dcrwallet, and dcrctl at 2.0.6. init modules for dcrd and dcrwallet
Signed-off-by: stakeynet <git@stakey.net>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{
|
||||
description = ''
|
||||
A collection of Nix packages and NixOS modules for easily
|
||||
installing full-featured Decred nodes.
|
||||
'';
|
||||
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: let
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
in {
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
dcrd = pkgs.callPackage ./pkgs/dcrd.nix {};
|
||||
dcrctl = pkgs.callPackage ./pkgs/dcrctl.nix {};
|
||||
dcrwallet = pkgs.callPackage ./pkgs/dcrwallet.nix {};
|
||||
});
|
||||
|
||||
overlays.default = final: prev: {
|
||||
dcrd = final.callPackage ./pkgs/dcrd.nix {};
|
||||
dcrctl = final.callPackage ./pkgs/dcrctl.nix {};
|
||||
dcrwallet = final.callPackage ./pkgs/dcrwallet.nix {};
|
||||
};
|
||||
|
||||
nixosModules = {
|
||||
dcrd = ./modules/dcrd.nix;
|
||||
dcrwallet = ./modules/dcrwallet.nix;
|
||||
default = { config, lib, pkgs, ... }: {
|
||||
imports = [
|
||||
self.nixosModules.dcrd
|
||||
self.nixosModules.dcrwallet
|
||||
];
|
||||
nixpkgs.overlays = [ self.overlays.default ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user