From a2230e848bc85e484ef14163ac90fdb7045855f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 26 Apr 2019 02:35:33 +0200 Subject: Move more packages to separate files --- pkgs/pgloader/default.nix | 16 ++++++++++++++++ pkgs/pgloader/pgloader.json | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/pgloader/default.nix create mode 100644 pkgs/pgloader/pgloader.json (limited to 'pkgs/pgloader') diff --git a/pkgs/pgloader/default.nix b/pkgs/pgloader/default.nix new file mode 100644 index 0000000..e4f24ea --- /dev/null +++ b/pkgs/pgloader/default.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchedGithub, sbcl, cacert, sqlite, freetds, libzip, curl, git, openssl, makeWrapper }: +stdenv.mkDerivation (fetchedGithub ./pgloader.json // { + buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ]; + LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ]; + buildPhase = '' + export PATH=$PATH:$out/bin + export HOME=$TMPDIR + make pgloader + ''; + dontStrip = true; + enableParallelBuilding = false; + installPhase = '' + install -Dm755 build/bin/pgloader "$out/bin/pgloader" + wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH" + ''; +}) diff --git a/pkgs/pgloader/pgloader.json b/pkgs/pgloader/pgloader.json new file mode 100644 index 0000000..dfe310b --- /dev/null +++ b/pkgs/pgloader/pgloader.json @@ -0,0 +1,15 @@ +{ + "tag": "v3.5.2", + "meta": { + "name": "pgloader", + "url": "https://github.com/dimitri/pgloader", + "branch": "refs/tags/v3.5.2" + }, + "github": { + "owner": "dimitri", + "repo": "pgloader", + "rev": "63af7e7373975391446dcae151f5c61564849025", + "sha256": "1rd0k1x7ml6b6x526brachm13v51vx5ikpg64c8k8j29cskq2vqa", + "fetchSubmodules": true + } +} -- cgit v1.2.3