Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 57 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 autoreconfHook, 6 flex, 7 bison, 8 readline, 9 libssh, 10 nixosTests, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "bird"; 15 version = "2.17.1"; 16 17 src = fetchFromGitLab { 18 domain = "gitlab.nic.cz"; 19 owner = "labs"; 20 repo = "bird"; 21 rev = "v${version}"; 22 hash = "sha256-9Zg3UmNEW+Q26PMj3Z1XDbPFC5vatX8i7RQSUlKXlwg="; 23 }; 24 25 nativeBuildInputs = [ 26 autoreconfHook 27 flex 28 bison 29 ]; 30 31 buildInputs = [ 32 readline 33 libssh 34 ]; 35 36 patches = [ 37 ./dont-create-sysconfdir-2.patch 38 ]; 39 40 CPP = "${stdenv.cc.targetPrefix}cpp -E"; 41 42 configureFlags = [ 43 "--localstatedir=/var" 44 "--runstatedir=/run/bird" 45 ]; 46 47 passthru.tests = nixosTests.bird2; 48 49 meta = { 50 changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS"; 51 description = "BIRD Internet Routing Daemon"; 52 homepage = "https://bird.network.cz"; 53 license = lib.licenses.gpl2Plus; 54 maintainers = with lib.maintainers; [ herbetom ]; 55 platforms = lib.platforms.linux; 56 }; 57}