2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchgit, libowfat, zlib }:
|
2014-10-07 17:06:32 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-09-09 20:39:17 +02:00
|
|
|
name = "opentracker-2018-05-26";
|
2016-10-03 19:45:19 +02:00
|
|
|
|
2014-10-07 17:06:32 +02:00
|
|
|
src = fetchgit {
|
2018-09-10 23:41:23 +02:00
|
|
|
url = "https://erdgeist.org/gitweb/opentracker";
|
2018-09-09 20:39:17 +02:00
|
|
|
rev = "6411f1567f64248b0d145493c2e61004d2822623";
|
|
|
|
sha256 = "110nfb6n4clykwdzpk54iccsfjawq0krjfqhg114i1z0ri5dyl8j";
|
2014-10-07 17:06:32 +02:00
|
|
|
};
|
2016-10-03 19:45:19 +02:00
|
|
|
|
2014-10-07 17:06:32 +02:00
|
|
|
buildInputs = [ libowfat zlib ];
|
2016-10-03 19:45:19 +02:00
|
|
|
|
2020-12-07 23:46:43 +01:00
|
|
|
makeFlags = [
|
|
|
|
"LIBOWFAT_HEADERS=${libowfat}/include/libowfat"
|
|
|
|
"LIBOWFAT_LIBRARY=${libowfat}/lib"
|
|
|
|
];
|
2020-12-03 15:21:54 +01:00
|
|
|
|
2014-10-07 17:06:32 +02:00
|
|
|
installPhase = ''
|
2018-09-10 23:41:23 +02:00
|
|
|
runHook preInstall
|
|
|
|
install -D opentracker $out/bin/opentracker
|
|
|
|
install -D opentracker.conf.sample $out/share/doc/opentracker.conf.sample
|
2016-10-03 19:45:19 +02:00
|
|
|
runHook postInstall
|
2014-10-07 17:06:32 +02:00
|
|
|
'';
|
2016-10-03 19:45:19 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://erdgeist.org/arts/software/opentracker/";
|
2016-10-03 19:45:19 +02:00
|
|
|
license = licenses.beerware;
|
2014-10-07 17:06:32 +02:00
|
|
|
platforms = platforms.linux;
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Bittorrent tracker project which aims for minimal resource usage and is intended to run at your wlan router";
|
2016-10-03 19:45:19 +02:00
|
|
|
maintainers = with maintainers; [ makefu ];
|
2014-10-07 17:06:32 +02:00
|
|
|
};
|
2015-06-04 19:22:36 +02:00
|
|
|
}
|