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