1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/irc/irssi/otr/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchFromGitHub, libotr, automake, autoconf, libtool, glib, pkgconfig, irssi }:
2013-04-13 16:09:27 +01:00
let
versionFix = fetchurl {
url = https://patch-diff.githubusercontent.com/raw/cryptodotis/irssi-otr/pull/60.patch;
sha256 = "18fk9nbzf3fvhvvvkrxv5l004hhimapqb6ra09m83268kbl4q3jy";
};
in
2013-04-13 16:09:27 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
2015-11-21 20:54:52 +00:00
name = "irssi-otr-${version}";
2016-02-13 04:50:09 +00:00
version = "1.0.1";
2015-11-21 20:54:52 +00:00
2016-02-12 17:43:19 +00:00
src = fetchFromGitHub {
owner = "cryptodotis";
repo = "irssi-otr";
2016-02-13 04:50:09 +00:00
rev = "4ad3b7b6c85be0154ab3694fe9831796db20c4fe";
sha256 = "1hm1whx1wzlx4fh4xf2y68rx9x6whi8bsbrhd6hqjhskg5msssrg";
2013-04-13 16:09:27 +01:00
};
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
2013-04-13 16:09:27 +01:00
'';
patches = [ versionFix ];
preConfigure = "sh ./bootstrap";
2013-04-13 16:09:27 +01:00
buildInputs = [ libotr automake autoconf libtool glib pkgconfig irssi ];
2015-11-21 20:54:52 +00:00
2013-04-13 16:09:27 +01:00
meta = {
homepage = https://github.com/cryptodotis/irssi-otr;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
2013-04-13 16:09:27 +01:00
};
}