mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, lynx }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ifmetric";
|
|
version = "0.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://0pointer.de/lennart/projects/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "1v0s5x81jzwnnl7hr254d4nkyc8qcv983pzr6vqmbr9l9q553a0g";
|
|
};
|
|
|
|
buildInputs = [ lynx ];
|
|
|
|
patches = [
|
|
# Fixes an issue related to the netlink API.
|
|
# Upstream is largely inactive; this is a Debian patch.
|
|
(fetchurl {
|
|
url = "https://launchpadlibrarian.net/85974387/10_netlink_fix.patch";
|
|
sha256 = "1pnlcr0qvk0bd5243wpg14i387zp978f4xhwwkcqn1cir91x7fbc";
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool for setting IP interface metrics";
|
|
longDescription = ''
|
|
ifmetric is a Linux tool for setting the metrics of all IPv4 routes
|
|
attached to a given network interface at once. This may be used to change
|
|
the priority of routing IPv4 traffic over the interface. Lower metrics
|
|
correlate with higher priorities.
|
|
'';
|
|
homepage = "http://0pointer.de/lennart/projects/ifmetric";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.anna328p ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "ifmetric";
|
|
};
|
|
}
|