mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
irssi_otr: 1.0.1 -> 1.0.2
This commit is contained in:
parent
8ec3b1fd5f
commit
71c1e2ffbf
|
@ -1,35 +1,23 @@
|
||||||
{ stdenv, fetchurl, fetchFromGitHub, libotr, automake, autoconf, libtool, glib, pkgconfig, irssi }:
|
{ stdenv, fetchurl, fetchFromGitHub, libotr, automake, autoconf, libtool, glib, pkgconfig, irssi }:
|
||||||
|
|
||||||
let
|
|
||||||
versionFix = fetchurl {
|
|
||||||
url = https://patch-diff.githubusercontent.com/raw/cryptodotis/irssi-otr/pull/60.patch;
|
|
||||||
sha256 = "18fk9nbzf3fvhvvvkrxv5l004hhimapqb6ra09m83268kbl4q3jy";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "irssi-otr-${version}";
|
name = "irssi-otr-${version}";
|
||||||
version = "1.0.1";
|
version = "1.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cryptodotis";
|
owner = "cryptodotis";
|
||||||
repo = "irssi-otr";
|
repo = "irssi-otr";
|
||||||
rev = "4ad3b7b6c85be0154ab3694fe9831796db20c4fe";
|
rev = "v${version}";
|
||||||
sha256 = "1hm1whx1wzlx4fh4xf2y68rx9x6whi8bsbrhd6hqjhskg5msssrg";
|
sha256 = "0c5wb2lg9q0i1jdhpyb5vpvxaa2xx00gvp3gdk93ix9v68gq1ppp";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = ''
|
|
||||||
sed -i 's,/usr/include/irssi,${irssi}/include/irssi,' src/Makefile.am
|
|
||||||
sed -i "s,/usr/lib/irssi,$out/lib/irssi," configure.ac
|
|
||||||
sed -i "s,/usr/share/irssi,$out/share/irssi," help/Makefile.am
|
|
||||||
'';
|
|
||||||
|
|
||||||
patches = [ versionFix ];
|
|
||||||
|
|
||||||
preConfigure = "sh ./bootstrap";
|
preConfigure = "sh ./bootstrap";
|
||||||
|
|
||||||
buildInputs = [ libotr automake autoconf libtool glib pkgconfig irssi ];
|
buildInputs = [ libotr automake autoconf libtool glib pkgconfig irssi ];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE="-I ${irssi}/include/irssi -I ${irssi}/include/irssi/src/core -I ${irssi}/include/irssi/src/";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/cryptodotis/irssi-otr;
|
homepage = https://github.com/cryptodotis/irssi-otr;
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
|
|
Loading…
Reference in a new issue