2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3, substituteAll }:
|
2019-05-26 17:58:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libelfin";
|
|
|
|
version = "unstable-2018-08-25";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aclements";
|
|
|
|
repo = pname;
|
|
|
|
rev = "ac45a094fadba77ad840063fb7aab82571546be0";
|
|
|
|
sha256 = "143x680c6hsy51kngs04ypg4ql3lp498llcwj4lh1v0qp5qvjhyz";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./0001-Don-t-detect-package-version-with-Git.patch;
|
|
|
|
inherit version;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/aclements/libelfin/";
|
2019-05-26 17:58:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "C++11 ELF/DWARF parser";
|
2021-08-27 20:09:49 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-05-26 17:58:04 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|