mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
adguardhome: remove toplevel system attr
Note that targetPlatform was incorrect when cross-compiling, and should be hostPlatform
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user