From 76d6d1e5bcc2eafc310eb705fc63a1e75e5ff507 Mon Sep 17 00:00:00 2001 From: Auguste Baum Date: Fri, 10 Nov 2023 23:27:59 +0100 Subject: [PATCH 1/2] sync: add unfinished derivation Work-in-progress --- pkgs/by-name/sync/package.nix | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/sync/package.nix diff --git a/pkgs/by-name/sync/package.nix b/pkgs/by-name/sync/package.nix new file mode 100644 index 00000000..c5eb8238 --- /dev/null +++ b/pkgs/by-name/sync/package.nix @@ -0,0 +1,39 @@ +{ + stdenv, + fetchgit, + autoreconfHook, + curl, + gnunet, + jansson, + libgcrypt, + libmicrohttpd, + libsodium, + pkg-config, + postgresql, + taler-exchange, +}: let + version = "0.9.3"; +in + stdenv.mkDerivation { + name = "sync"; + inherit version; + + src = fetchgit { + url = "https://git.taler.net/sync.git"; + rev = "v${version}"; + hash = "sha256-u4oR9zCBpBSqKFIhm+pLTH83tPLvYULt8FhDyTsP7m4="; + }; + + nativeBuildInputs = [ + autoreconfHook + curl + taler-exchange + gnunet + jansson + libgcrypt + libmicrohttpd + libsodium + pkg-config + postgresql + ]; + } From aa8f93663b8c28bdc52d5318ab56c830a4b9c1ae Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Medina Date: Tue, 19 Dec 2023 21:14:16 -0500 Subject: [PATCH 2/2] taler sync: init at 0.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Auguste Baum Co-authored-by: Matúš Ferech --- flake.lock | 6 +++--- pkgs/by-name/sync/package.nix | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 30559a43..7824ec11 100644 --- a/flake.lock +++ b/flake.lock @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1701336116, - "narHash": "sha256-kEmpezCR/FpITc6yMbAh4WrOCiT2zg5pSjnKrq51h5Y=", + "lastModified": 1702900294, + "narHash": "sha256-pt7sSoJYNw3n8YtXw0Z/Nnr6/PfY2YrjDvqboErXnRM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f5c27c6136db4d76c30e533c20517df6864c46ee", + "rev": "886c9aee6ca9324e127f9c2c4e6f68c2641c8256", "type": "github" }, "original": { diff --git a/pkgs/by-name/sync/package.nix b/pkgs/by-name/sync/package.nix index c5eb8238..dbdc24fc 100644 --- a/pkgs/by-name/sync/package.nix +++ b/pkgs/by-name/sync/package.nix @@ -1,4 +1,5 @@ { + lib, stdenv, fetchgit, autoreconfHook, @@ -11,6 +12,8 @@ pkg-config, postgresql, taler-exchange, + taler-merchant, + callPackage, }: let version = "0.9.3"; in @@ -28,6 +31,7 @@ in autoreconfHook curl taler-exchange + taler-merchant gnunet jansson libgcrypt @@ -36,4 +40,13 @@ in pkg-config postgresql ]; + + # Tests run with `make check`. + doCheck = false; # `test_sync_api` looks like an integration test + + meta = { + homepage = "https://git.taler.net/sync.git"; + description = "Backup and synchronization service."; + license = lib.licenses.agpl3Plus; + }; }