Merge pull request #64333 from matthiasbeyer/update-hstr

hstr: 1.25 -> 2.0
This commit is contained in:
Marek Mahut 2019-08-09 14:20:25 +02:00 committed by GitHub
commit acb4fca7eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,29 @@
{ stdenv, fetchurl, readline, ncurses }: { stdenv, fetchFromGitHub, readline, ncurses
, autoreconfHook, pkgconfig, gettext }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "hstr-${version}"; name = "hstr-${version}";
version = "1.25"; version = "2.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/dvorka/hstr/releases/download/${version}/hh-${version}-src.tgz"; owner = "dvorka";
sha256 = "10njj0a3s5czv497wk3whka3gxr7vmhabs12vaw7kgb07h4ssnhg"; repo = "hstr";
rev = version;
sha256 = "1y9vsfbg07gbic0daqy569d9pb9i1d07fym3q7a0a99hbng85s20";
}; };
buildInputs = [ readline ncurses ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ readline ncurses gettext ];
configurePhase = ''
autoreconf -fvi
./configure
'';
installPhase = ''
mkdir -p $out/bin/
mv src/hstr $out/bin/
'';
meta = { meta = {
homepage = https://github.com/dvorka/hstr; homepage = https://github.com/dvorka/hstr;