diff options
author | Emile <git@emile.space> | 2023-10-31 20:38:17 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2023-10-31 20:38:17 +0100 |
commit | 5f5354aa40abbef8c892aac82e8b463c49cff4c5 (patch) | |
tree | 82bea967d153b26a64a997721e6708722050f03e | |
parent | b79248f3c1434d65c9e9b1b19ef58138744fcf41 (diff) |
working filter for the station stuff
-rw-r--r-- | wyze.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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 |