From ee72fbb56f0066bf49c93c199541230b04e66ce7 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 23 Sep 2019 14:05:16 -0400 Subject: [PATCH] cabal2nix . > paymentserver.nix --- paymentserver.nix | 20 ++++++++++++++++++++ shell.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 paymentserver.nix diff --git a/paymentserver.nix b/paymentserver.nix new file mode 100644 index 0000000..f5f8f53 --- /dev/null +++ b/paymentserver.nix @@ -0,0 +1,20 @@ +{ mkDerivation, aeson, base, containers, cryptonite, data-default +, optparse-applicative, ristretto, servant, servant-server, stdenv +, stripe-core, text, wai, wai-extra, warp +}: +mkDerivation { + pname = "PaymentServer"; + version = "0.1.0.0"; + src = ./.; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base containers cryptonite data-default optparse-applicative + servant servant-server stripe-core text wai wai-extra warp + ]; + libraryPkgconfigDepends = [ ristretto ]; + executableHaskellDepends = [ base text ]; + homepage = "https://github.com/privatestorageio/PaymentServer#readme"; + description = "Coordinate entities for the purchase of PrivateStorage.io vouchers."; + license = stdenv.lib.licenses.asl20; +} diff --git a/shell.nix b/shell.nix index b474e00..6c160c4 100644 --- a/shell.nix +++ b/shell.nix @@ -2,5 +2,6 @@ pkgs.mkShell { buildInputs = [ pkgs.stack + pkgs.cabal2nix ]; } -- GitLab