adguardhome: remove toplevel system attr

Note that targetPlatform was incorrect when cross-compiling,
and should be hostPlatform
This commit is contained in:
Ryan Burns 2021-10-22 14:04:49 -07:00
parent aed6bb336e
commit 0b918edc99

View file

@ -1,10 +1,10 @@
{ lib, stdenv, fetchurl, fetchzip, system ? stdenv.targetPlatform }:
{ lib, stdenv, fetchurl, fetchzip }:
stdenv.mkDerivation rec {
pname = "adguardhome";
version = "0.106.3";
src = (import ./bins.nix { inherit fetchurl fetchzip; }).${system};
src = (import ./bins.nix { inherit fetchurl fetchzip; }).${stdenv.hostPlatform.system};
installPhase = ''
install -m755 -D ./AdGuardHome $out/bin/adguardhome