telegram-cli: 2014-03-04 -> 2015-07-30 & add maintainer
This commit is contained in:
parent
adc04192cf
commit
d649a1d88f
@ -1,28 +1,26 @@
|
|||||||
{ stdenv, fetchgit, libconfig, lua5_2, openssl, readline, zlib
|
{ stdenv, fetchgit, libconfig, lua5_2, openssl, readline, zlib
|
||||||
|
, libevent, pkgconfig, python, jansson, bash
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "telegram-cli-2014-03-04";
|
name = "telegram-cli-2015-07-30";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/vysheng/tg.git";
|
url = "https://github.com/vysheng/tg.git";
|
||||||
rev = "ac6079a00ac66bb37a3179a82af130b41ec39bc9";
|
sha256 = "0phn9nl0sf2fylzfwi427xq60cfrnpsvhh8bp55y1wcjkmp0fxsn";
|
||||||
sha256 = "1rpwnyzmqk7p97n5pd00m5c6rypc39mb3hs94qxxrdcpwpgcb73q";
|
rev = "2052f4b381337d75e783facdbfad56b04dec1a9c";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libconfig lua5_2 openssl readline zlib ];
|
buildInputs = [ libconfig lua5_2 openssl readline zlib libevent pkgconfig python jansson ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; # CPPFunction
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ./telegram $out/bin/telegram-wo-key
|
cp ./bin/telegram-cli $out/bin/telegram-wo-key
|
||||||
cp ./tg.pub $out/
|
cp ./tg-server.pub $out/
|
||||||
cat > $out/bin/telegram <<EOF
|
cat > $out/bin/telegram-cli <<EOF
|
||||||
#!/usr/bin/env bash
|
#!${bash}/bin/sh
|
||||||
$out/bin/telegram-wo-key -k $out/tg.pub
|
$out/bin/telegram-wo-key -k $out/tg-server.pub
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/telegram
|
chmod +x $out/bin/telegram-cli
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -30,5 +28,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = https://telegram.org/;
|
homepage = https://telegram.org/;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
maintainers = stdenv.lib.maintainers.jagajaga;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user