nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "ratools";
9 version = "0.6.2";
10
11 src = fetchFromGitHub {
12 owner = "danrl";
13 repo = "ratools";
14 rev = "v${version}";
15 sha256 = "07m45bn9lzgbfihmxic23wqp73nxg5ihrvkigr450jq6gzvgwawq";
16 };
17
18 makeFlags = [
19 "-C"
20 "src"
21 ];
22
23 installPhase = ''
24 install -vD bin/* -t $out/bin
25 install -vD man/* -t $out/share/man/man8
26 '';
27
28 meta = with lib; {
29 description = "Fast, dynamic, multi-threading framework for IPv6 Router Advertisements";
30 homepage = "https://github.com/danrl/ratools";
31 license = licenses.asl20;
32 platforms = platforms.linux;
33 maintainers = [ maintainers.fpletz ];
34 };
35}