From 5f5354aa40abbef8c892aac82e8b463c49cff4c5 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 31 Oct 2023 20:38:17 +0100 Subject: working filter for the station stuff --- wyze.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wyze.nix b/wyze.nix index 7726f8b..584122d 100644 --- a/wyze.nix +++ b/wyze.nix @@ -19,16 +19,18 @@ pkgs.stdenv.mkDerivation { unpackPhase = if pkgs.lib.hasPrefix "wco_cam_sd" attrs.version || pkgs.lib.hasPrefix "wco_cam_v2_sd" attrs.version + || pkgs.lib.hasPrefix "wco_station_sd_" attrs.version then '' unzip -d $out $src '' else '' unzip -d $out $src - gzip -d $out/*.tar.gz || true + gzip -d $out/*.tar.gz ''; buildPhase = if pkgs.lib.hasPrefix "wco_cam_sd" attrs.version || pkgs.lib.hasPrefix "wco_cam_v2_sd" attrs.version + || pkgs.lib.hasPrefix "wco_station_sd_" attrs.version then '' ls -l $out/sd_update ls -1 $out/sd_update| xargs -I {} file $out/sd_update/{} > $out/info.txt -- cgit 1.4.1