Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2018-11-22 09:57:08 +01:00
122 changed files with 2802 additions and 902 deletions

View File

@@ -15,7 +15,8 @@ buildGoPackage rec {
goDeps = ./deps.nix;
nativeBuildInputs = [ pkgconfig libgit2 ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libgit2 ];
meta = with stdenv.lib; {
homepage = https://github.com/junegunn/blsd;

View File

@@ -1,11 +1,9 @@
{ stdenv, fetchurl, ncurses, customConfig ? null }:
stdenv.mkDerivation rec {
{callPackage, fetchurl}:
callPackage ./dvtm.nix rec {
name = "dvtm-0.15";
src = fetchurl {
url = "${meta.homepage}/${name}.tar.gz";
url = "http://www.brain-dump.org/projects/dvtm/${name}.tar.gz";
sha256 = "0475w514b7i3gxk6khy8pfj2gx9l7lv2pwacmq92zn1abv01a84g";
};
@@ -17,29 +15,5 @@ stdenv.mkDerivation rec {
sha256 = "1cby8x3ckvhzqa8yxlfrwzgm8wk7yz84kr9psdjr7xwpnca1cqrd";
})
];
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
postPatch = stdenv.lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
buildInputs = [ ncurses ];
prePatch = ''
substituteInPlace Makefile \
--replace /usr/share/terminfo $out/share/terminfo
'';
installPhase = ''
make PREFIX=$out install
'';
meta = with stdenv.lib; {
description = "Dynamic virtual terminal manager";
homepage = http://www.brain-dump.org/projects/dvtm;
license = licenses.mit;
maintainers = [ maintainers.vrthra ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,30 @@
{ stdenv, ncurses, customConfig ? null, name, src, patches ? [] }:
stdenv.mkDerivation rec {
inherit name src patches;
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
postPatch = stdenv.lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
buildInputs = [ ncurses ];
prePatch = ''
substituteInPlace Makefile \
--replace /usr/share/terminfo $out/share/terminfo
'';
installPhase = ''
make PREFIX=$out install
'';
meta = with stdenv.lib; {
description = "Dynamic virtual terminal manager";
homepage = http://www.brain-dump.org/projects/dvtm;
license = licenses.mit;
maintainers = [ maintainers.vrthra ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,29 @@
{callPackage, fetchFromGitHub, fetchpatch}:
callPackage ./dvtm.nix {
name = "dvtm-unstable-2018-03-31";
src = fetchFromGitHub {
owner = "martanne";
repo = "dvtm";
rev = "311a8c0c28296f8f87fb63349e0f3254c7481e14";
sha256 = "0pyxjkaxh8n97kccnmd3p98vi9h8mcfy5lswzqiplsxmxxmlbpx2";
};
patches = [
# https://github.com/martanne/dvtm/pull/69
# Use self-pipe instead of signal blocking fixes issues on darwin.
(fetchpatch {
name = "use-self-pipe-fix-darwin";
url = "https://github.com/martanne/dvtm/commit/1f1ed664d64603f3f1ce1388571227dc723901b2.patch";
sha256 = "14j3kks7b1v6qq12442v1da3h7khp02rp0vi0qrz0rfgkg1zilpb";
})
# https://github.com/martanne/dvtm/pull/86
# Fix buffer corruption when title is updated
(fetchpatch {
name = "fix-buffer-corruption-on-title-update";
url = "https://github.com/martanne/dvtm/commit/be6c3f8f615daeab214d484e6fff22e19631a0d1.patch";
sha256 = "1wdrl3sg815lhs22fwbc4w5dn4ifpdgl7v1kqfnhg752av4im7h7";
})
];
}

View File

@@ -1,14 +1,18 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
name = "fpart-${version}";
version = "1.0.0";
version = "1.1.0";
src = fetchurl {
url = "http://contribs.martymac.org/fpart/${name}.tar.gz";
sha256 = "1p0ajmry18lcg82znfp8nxs4w3izic775l7df08hywlq4vfa66pg";
src = fetchFromGitHub {
owner = "martymac";
repo = "fpart";
rev = name;
sha256 = "0h3mqc1xj5j2z8s8g3pvvpbjs6x74dj8niyh3p2ymla35kbzskf4";
};
nativeBuildInputs = [ autoreconfHook ];
postInstall = ''
sed "s|^FPART_BIN=.*|FPART_BIN=\"$out/bin/fpart\"|" \
-i "$out/bin/fpsync"

View File

@@ -1,15 +1,20 @@
{ stdenv, fetchurl, glib, readline, bison, flex, pkgconfig }:
{ stdenv, fetchFromGitHub, glib, readline
, bison, flex, pkgconfig, autoreconfHook
, txt2man, which }:
stdenv.mkDerivation {
name = "mdbtools-0.6pre1";
let version = "0.7.1";
in stdenv.mkDerivation {
name = "mdbtools-${version}";
src = fetchurl {
url = mirror://sourceforge/mdbtools/mdbtools-0.6pre1.tar.gz;
sha256 = "1lz33lmqifjszad7rl1r7rpxbziprrm5rkb27wmswyl5v98dqsbi";
src = fetchFromGitHub {
owner = "brianb";
repo = "mdbtools";
rev = version;
sha256 = "0gwcpp9y09xhs21g7my2fs8ncb8i6ahlyixcx8jd3q97jbzj441l";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [glib readline bison flex];
nativeBuildInputs = [ pkgconfig bison flex autoreconfHook txt2man which ];
buildInputs = [ glib readline ];
preConfigure = ''
sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c

View File

@@ -1,35 +0,0 @@
{ stdenv, fetchgit, glib, readline, bison, flex, pkgconfig,
libiconv, autoreconfHook, which, txt2man, gnome-doc-utils, scrollkeeper }:
stdenv.mkDerivation {
name = "mdbtools-git-2014-07-25";
src = fetchgit {
url = "http://github.com/brianb/mdbtools.git";
rev = "9ab40e83e6789015c965c92bdb62f92f8cdd0dbd";
sha256 = "0hlf5lk86xm0bpdlpk4a1zyfvbim76dhvmybxga2p7mbb1jc825l";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
glib readline bison flex autoreconfHook which txt2man
gnome-doc-utils scrollkeeper libiconv
];
preAutoreconf = ''
sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \
-e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \
-i configure.ac
'';
preConfigure = ''
sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
'';
meta = with stdenv.lib; {
description = ".mdb (MS Access) format tools";
homepage = http://mdbtools.sourceforge.net;
platforms = platforms.linux;
license = with licenses; [ gpl2 lgpl2 ];
};
}

View File

@@ -0,0 +1,25 @@
{ stdenv, rustPlatform, fetchFromGitHub, cmake, pkgconfig, zlib }:
rustPlatform.buildRustPackage rec {
name = "miniserve-${version}";
version = "0.2.1";
src = fetchFromGitHub {
owner = "svenstaro";
repo = "miniserve";
rev = "v${version}";
sha256 = "1g8ggqs4fyscb1r98qj22f61jgkqnr4vdyps0drrvydl9lafdmpl";
};
cargoSha256 = "18wyr0q5pkxds5hrl4g3mqmk46mr0nvs0id94aiw87729ly4vi8c";
nativeBuildInputs = [ cmake pkgconfig zlib ];
meta = with stdenv.lib; {
description = "For when you really just want to serve some files over HTTP right now!";
homepage = https://github.com/svenstaro/miniserve;
license = with licenses; [ mit ];
maintainers = with maintainers; [ nequissimus ];
platforms = platforms.linux;
};
}