Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, python3, substituteAll }: 2 3stdenv.mkDerivation rec { 4 pname = "libelfin"; 5 version = "unstable-2018-08-25"; 6 7 src = fetchFromGitHub { 8 owner = "aclements"; 9 repo = pname; 10 rev = "ac45a094fadba77ad840063fb7aab82571546be0"; 11 sha256 = "143x680c6hsy51kngs04ypg4ql3lp498llcwj4lh1v0qp5qvjhyz"; 12 }; 13 14 patches = [ 15 (substituteAll { 16 src = ./0001-Don-t-detect-package-version-with-Git.patch; 17 inherit version; 18 }) 19 ]; 20 21 nativeBuildInputs = [ python3 ]; 22 23 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/aclements/libelfin/"; 27 license = licenses.mit; 28 description = "C++11 ELF/DWARF parser"; 29 maintainers = with maintainers; [ ]; 30 platforms = platforms.linux; 31 }; 32}