From 0b918edc99a66cbd0a4db819ff2e730dc58847a8 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 22 Oct 2021 14:04:49 -0700 Subject: [PATCH] adguardhome: remove toplevel system attr Note that targetPlatform was incorrect when cross-compiling, and should be hostPlatform --- pkgs/servers/adguardhome/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/adguardhome/default.nix b/pkgs/servers/adguardhome/default.nix index 34f64edc6ba3..848e259256b9 100644 --- a/pkgs/servers/adguardhome/default.nix +++ b/pkgs/servers/adguardhome/default.nix @@ -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