Skip to content
Snippets Groups Projects
Commit 3f330727 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Merge branch '79.directly-reference-paymentserver' into 'develop'

Adopt the Nix packaging from our nixpkgs fork and use it

Closes #79

See merge request privatestorage/PrivateStorageio!158
parents 4c7ce808 8cb54ea2
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,7 @@
# ZKAPs.
{ lib, pkgs, config, ... }: let
cfg = config.services.private-storage-issuer;
# Our own nixpkgs fork:
ourpkgs = import ../../nixpkgs-ps.nix {};
zkapissuer = pkgs.callPackage ../pkgs/zkapissuer { };
in {
imports = [
# Give it a good SSH configuration.
......@@ -13,7 +12,7 @@ in {
options = {
services.private-storage-issuer.enable = lib.mkEnableOption "PrivateStorage ZKAP Issuer Service";
services.private-storage-issuer.package = lib.mkOption {
default = ourpkgs.zkapissuer.components.exes."PaymentServer-exe";
default = zkapissuer.components.exes."PaymentServer-exe";
type = lib.types.package;
example = lib.literalExample "pkgs.zkapissuer.components.exes.\"PaymentServer-exe\"";
description = ''
......
{ callPackage }:
let
repo = callPackage ./repo.nix { };
in
(import "${repo}/nix").PaymentServer
{ fetchFromGitHub }:
fetchFromGitHub {
owner = "PrivateStorageio";
repo = "PaymentServer";
rev = "2ca189c51a5314eb476d1866d28ee483701af6f5";
sha256 = "1sb53lvi6alwdjhx4cv1gg7ywkqf18n1zjgdj3nigq3vjwxhdcpb";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment