textql: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-22 21:24:43 +02:00
parent 4acb425c39
commit 1acf6716aa
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -4,7 +4,7 @@ buildGoPackage rec {
name = "textql-${version}";
version = "2.0.3";
rev = "${version}";
goPackagePath = "github.com/dinedal/textql";
src = fetchFromGitHub {
@ -16,6 +16,10 @@ buildGoPackage rec {
goDeps = ./deps.nix;
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -delete_rpath $out/lib $bin/bin/textql
'';
meta = with stdenv.lib; {
description = "Execute SQL against structured text like CSV or TSV";
homepage = https://github.com/dinedal/textql;