diff --git a/pkgs/by-name/ow/owntracks-recorder/package.nix b/pkgs/by-name/ow/owntracks-recorder/package.nix index 8f88f22977ca..a659d1ffd17a 100644 --- a/pkgs/by-name/ow/owntracks-recorder/package.nix +++ b/pkgs/by-name/ow/owntracks-recorder/package.nix @@ -13,6 +13,7 @@ libconfig, testers, owntracks-recorder, + nix-update-script, }: let lua = lua5_2_compat; @@ -20,13 +21,13 @@ in stdenv.mkDerivation (finalAttrs: { pname = "owntracks-recorder"; - version = "1.0.1"; + version = "1.0.7"; src = fetchFromGitHub { owner = "owntracks"; repo = "recorder"; rev = finalAttrs.version; - hash = "sha256-/nLt8R8s3k6MQhtMXOLUDluuU7eNwZGYh5/km8tXtiE="; + hash = "sha256-kob2hKz8sgMhJbZP7kE7Seo4n2+TAw0a8Pd2c73ptJs="; }; nativeBuildInputs = [ @@ -44,6 +45,10 @@ stdenv.mkDerivation (finalAttrs: { (lib.getDev libsodium) ]; + # Upstream only links in `libm` when `WITH_LUA = no`, and otherwise expects lua's pkg-config to provide it. + # The lua pkg-config in nixpkgs doesn't provide it, so we have to link it in explictily. + makeFlags = [ "LIBLM=yes" ]; + configurePhase = '' runHook preConfigure @@ -71,10 +76,14 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; - passthru.tests.version = testers.testVersion { - package = owntracks-recorder; - command = "ocat --version"; - version = finalAttrs.version; + passthru = { + tests.version = testers.testVersion { + package = owntracks-recorder; + command = "ocat --version"; + version = finalAttrs.version; + }; + + updateScript = nix-update-script { }; }; meta = {