nixpkgs/pkgs/applications/networking/p2p/opentracker/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-03 22:29:32 +00:00
{ lib, stdenv, fetchgit, libowfat, zlib, nixosTests }:
stdenv.mkDerivation {
pname = "opentracker";
version = "unstable-2018-05-26";
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";
};
buildInputs = [ libowfat zlib ];
makeFlags = [
"LIBOWFAT_HEADERS=${libowfat}/include/libowfat"
"LIBOWFAT_LIBRARY=${libowfat}/lib"
];
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
runHook postInstall
'';
2021-04-03 22:29:32 +00:00
passthru.tests = {
bittorrent-integration = nixosTests.bittorrent;
};
meta = with lib; {
homepage = "https://erdgeist.org/arts/software/opentracker/";
license = licenses.beerware;
platforms = platforms.linux;
description = "Bittorrent tracker project which aims for minimal resource usage and is intended to run at your wlan router";
maintainers = with maintainers; [ makefu ];
};
2015-06-04 17:22:36 +00:00
}