blob: 8f63f27cf4d2d1d34035b1ea3b9d246bbccdd9c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ stdenv, fetchgit, libowfat, zlib }:
stdenv.mkDerivation {
name = "opentracker-2018-05-26";
src = fetchgit {
url = "https://erdgeist.org/gitweb/opentracker";
rev = "6411f1567f64248b0d145493c2e61004d2822623";
sha256 = "110nfb6n4clykwdzpk54iccsfjawq0krjfqhg114i1z0ri5dyl8j";
};
buildInputs = [ libowfat zlib ];
postPatch = ''
substituteInPlace Makefile \
--replace 'LIBOWFAT_HEADERS=$(PREFIX)/libowfat' 'LIBOWFAT_HEADERS=${libowfat}/include/libowfat' \
--replace 'LIBOWFAT_LIBRARY=$(PREFIX)/libowfat' 'LIBOWFAT_LIBRARY=${libowfat}/lib'
'';
installPhase = ''
runHook preInstall
install -D opentracker $out/bin/opentracker
install -D opentracker.conf.sample $out/share/doc/opentracker.conf.sample
runHook postInstall
'';
meta = with stdenv.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 ];
};
}
|