From c9b4beaf461d7cb2bac0d1ab93d2f11e654e9873 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 19 Sep 2019 13:49:06 -0400
Subject: [PATCH] Regularize nix packaging wrt zkapauthorizer itself.

---
 default.nix  | 2 +-
 overlays.nix | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/default.nix b/default.nix
index f1c5e37..174567c 100644
--- a/default.nix
+++ b/default.nix
@@ -1,2 +1,2 @@
 { pkgs ? import ./nixpkgs.nix { } }:
-pkgs.python27Packages.callPackage ./zkapauthorizer.nix { }
+pkgs.python27Packages.zkapauthorizer
diff --git a/overlays.nix b/overlays.nix
index 21c2e6a..a22a766 100644
--- a/overlays.nix
+++ b/overlays.nix
@@ -22,6 +22,9 @@ self: super: {
       # we depend on the privacypass python library, a set of bindings to the
       # challenge-bypass-ristretto Rust library
       privacypass = python-super.callPackage ./privacypass.nix { };
+
+      # And add ourselves to the collection too.
+      zkapauthorizer = python-super.callPackage ./zkapauthorizer.nix { };
     };
   };
 }
-- 
GitLab