From c211cb1180d8a7055ee9b9f863ef633879f68dc0 Mon Sep 17 00:00:00 2001 From: volth Date: Tue, 7 Aug 2018 14:04:04 +0000 Subject: [PATCH] zd1211-firmware: fixed output derivation (#44611) --- .../linux/firmware/zd1211/default.nix | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/os-specific/linux/firmware/zd1211/default.nix b/pkgs/os-specific/linux/firmware/zd1211/default.nix index e28a85ab0b27..2c9db47539f7 100644 --- a/pkgs/os-specific/linux/firmware/zd1211/default.nix +++ b/pkgs/os-specific/linux/firmware/zd1211/default.nix @@ -1,23 +1,20 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchzip }: -stdenv.mkDerivation rec { +let pname = "zd1211-firmware"; version = "1.5"; - +in fetchzip rec { name = "${pname}-${version}"; + url = "mirror://sourceforge/zd1211/${name}.tar.bz2"; - src = fetchurl { - url = "mirror://sourceforge/zd1211/${name}.tar.bz2"; - sha256 = "04ibs0qw8bh6h6zmm5iz6lddgknwhsjq8ib3gyck6a7psw83h7gi"; - }; - - dontBuild = true; - - installPhase = '' + postFetch = '' + tar -xjvf $downloadedFile mkdir -p $out/lib/firmware/zd1211 - cp * $out/lib/firmware/zd1211 + cp zd1211-firmware/* $out/lib/firmware/zd1211 ''; + sha256 = "0sj2zl3r0549mjz37xy6iilm1hm7ak5ax02gwrn81r5yvphqzd52"; + meta = { description = "Firmware for the ZyDAS ZD1211(b) 802.11a/b/g USB WLAN chip"; homepage = https://sourceforge.net/projects/zd1211/;