diff options
author | volth <volth@webmaster.ms> | 2018-08-07 14:04:04 +0000 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-07 16:04:04 +0200 |
commit | c211cb1180d8a7055ee9b9f863ef633879f68dc0 (patch) | |
tree | 640092df1a85e01c29c6338299d11eaa7239a0bc | |
parent | 6d00805dff35a437dac7033aa4bc551efcbb1636 (diff) |
zd1211-firmware: fixed output derivation (#44611)
-rw-r--r-- | pkgs/os-specific/linux/firmware/zd1211/default.nix | 21 |
1 files 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 e28a85ab0b278..2c9db47539f73 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/; |