17 stdenv.mkDerivation (finalAttrs: {
18 pname = "owntracks-recorder";
21 src = fetchFromGitHub {
24 rev = finalAttrs.version;
25 hash = "sha256-KDImoIUAkjCa4O++F9LdDN+i8VoC78g8644Rhbpy+mc=";
34 (lib.getLib libconfig)
37 (lib.getDev mosquitto)
40 (lib.getDev libsodium)
46 cp config.mk.in config.mk
48 substituteInPlace config.mk \
49 --replace "INSTALLDIR = /usr/local" "INSTALLDIR = $out" \
50 --replace "WITH_LUA ?= no" "WITH_LUA ?= yes" \
51 --replace "WITH_ENCRYPT ?= no" "WITH_ENCRYPT ?= yes"
61 install -m 0755 ot-recorder $out/bin
62 install -m 0755 ocat $out/bin
67 passthru.tests.version = testers.testVersion {
68 package = owntracks-recorder;
69 command = "ocat --version";
70 version = finalAttrs.version;
74 description = "Store and access data published by OwnTracks apps";
75 homepage = "https://github.com/owntracks/recorder";
76 changelog = "https://github.com/owntracks/recorder/blob/master/Changelog";
77 license = licenses.gpl2Plus;
78 platforms = platforms.linux;
79 maintainers = with maintainers; [ gaelreyrol ];
80 mainProgram = "ot-recorder";