mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-06 04:40:10 +00:00
owntracks-recorder: 1.0.1 -> 1.0.7; add updateScript (#590798)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user