Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libelfin / default.nix
blob7d5a928aa2f4888a673c610f6a8ff5ba374eb02a
1 { lib, stdenv, fetchFromGitHub, python3, substituteAll }:
3 stdenv.mkDerivation rec {
4   pname = "libelfin";
5   version = "unstable-2018-08-25";
7   src = fetchFromGitHub {
8     owner = "aclements";
9     repo = pname;
10     rev = "ac45a094fadba77ad840063fb7aab82571546be0";
11     sha256 = "143x680c6hsy51kngs04ypg4ql3lp498llcwj4lh1v0qp5qvjhyz";
12   };
14   patches = [
15     (substituteAll {
16       src = ./0001-Don-t-detect-package-version-with-Git.patch;
17       inherit version;
18     })
19   ];
21   nativeBuildInputs = [ python3 ];
23   makeFlags = [ "PREFIX=${placeholder "out"}" ];
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   };