forked from mirrors/nixpkgs
darwin.iproute2mac: 1.2.1 -> 1.4.0
https://github.com/brona/iproute2mac/releases/tag/v1.4.0 Add jiegec to maintaienr list.
This commit is contained in:
parent
1fa008d23b
commit
087eeea133
|
@ -1,21 +1,20 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, darwin, python2 }:
|
{ lib, stdenv, fetchFromGitHub, darwin, python3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.2.1";
|
version = "1.4.0";
|
||||||
pname = "iproute2mac";
|
pname = "iproute2mac";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "brona";
|
owner = "brona";
|
||||||
repo = "iproute2mac";
|
repo = "iproute2mac";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1n6la7blbxza2m79cpnywsavhzsdv4gzdxrkly4dppyidjg6jy1h";
|
sha256 = "sha256-xakCNjmZpdVY7MMxk38EZatrakgkEeDhvljhl+aMmGg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python2 ];
|
buildInputs = [ python3 ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/ip.py \
|
substituteInPlace src/ip.py \
|
||||||
--replace /usr/bin/python ${python2}/bin/python \
|
|
||||||
--replace /sbin/ifconfig ${darwin.network_cmds}/bin/ifconfig \
|
--replace /sbin/ifconfig ${darwin.network_cmds}/bin/ifconfig \
|
||||||
--replace /sbin/route ${darwin.network_cmds}/bin/route \
|
--replace /sbin/route ${darwin.network_cmds}/bin/route \
|
||||||
--replace /usr/sbin/netstat ${darwin.network_cmds}/bin/netstat \
|
--replace /usr/sbin/netstat ${darwin.network_cmds}/bin/netstat \
|
||||||
|
@ -32,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://github.com/brona/iproute2mac";
|
homepage = "https://github.com/brona/iproute2mac";
|
||||||
description = "CLI wrapper for basic network utilites on Mac OS X inspired with iproute2 on Linux systems - ip command.";
|
description = "CLI wrapper for basic network utilites on Mac OS X inspired with iproute2 on Linux systems - ip command.";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ flokli ];
|
maintainers = with maintainers; [ jiegec ];
|
||||||
platforms = platforms.darwin;
|
platforms = platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue