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