1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/p2p/opentracker/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-03 23:29:32 +01:00
{ lib, stdenv, fetchgit, libowfat, zlib, nixosTests }:
stdenv.mkDerivation {
2018-09-09 19:39:17 +01:00
name = "opentracker-2018-05-26";
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";
};
buildInputs = [ libowfat zlib ];
makeFlags = [
"LIBOWFAT_HEADERS=${libowfat}/include/libowfat"
"LIBOWFAT_LIBRARY=${libowfat}/lib"
];
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
runHook postInstall
'';
2021-04-03 23:29:32 +01: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 18:22:36 +01:00
}