5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
42 lines
789 B
Nix
42 lines
789 B
Nix
{ lib
|
|
, stdenv
|
|
, autoreconfHook
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, talloc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libasn1c";
|
|
version = "0.9.36";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmocom";
|
|
repo = "libasn1c";
|
|
rev = version;
|
|
hash = "sha256-Qh4QVssHS6XDfHJBR+y8J5tUhT/6tDg+aF9nX6UAGV8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
echo "${version}" > .tarball-version
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
talloc
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Runtime library of Lev Walkin's asn1c split out as separate library";
|
|
homepage = "https://github.com/osmocom/libasn1c/";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ janik ];
|
|
};
|
|
}
|