uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/tools/networking/openvpn/update-systemd-resolved.nix
Normal file
42
pkgs/tools/networking/openvpn/update-systemd-resolved.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, iproute2
|
||||
, runtimeShell
|
||||
, systemd
|
||||
, coreutils
|
||||
, util-linux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "update-systemd-resolved";
|
||||
# when updating this, check if additional binaries need injecting into PATH
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jonathanio";
|
||||
repo = "update-systemd-resolved";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-lYJTR3oBmpENcqNHa9PFXsw7ly6agwjBWf4UXf1d8Kc=";
|
||||
};
|
||||
|
||||
# set SCRIPT_NAME in case we are wrapped and inject PATH
|
||||
patches = [
|
||||
./update-systemd-resolved.patch
|
||||
];
|
||||
|
||||
PREFIX = "${placeholder "out"}/libexec/openvpn";
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace ${PREFIX}/update-systemd-resolved \
|
||||
--subst-var-by PATH ${lib.makeBinPath [ coreutils iproute2 runtimeShell systemd util-linux ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus";
|
||||
homepage = "https://github.com/jonathanio/update-systemd-resolved";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ eadwu ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue