lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "libGDSII";
10 version = "0.21";
11
12 src = fetchFromGitHub {
13 owner = "HomerReid";
14 repo = "libGDSII";
15 rev = "v${version}";
16 hash = "sha256-EXEt7l69etcBdDdEDlD1ODOdhTBZCVjgY1jhRUDd/W0=";
17 };
18
19 # File is missing in the repo but automake requires it
20 postPatch = ''
21 touch ChangeLog
22 '';
23
24 nativeBuildInputs = [ autoreconfHook ];
25
26 meta = with lib; {
27 description = "Library and command-line utility for reading GDSII geometry files";
28 mainProgram = "GDSIIConvert";
29 homepage = "https://github.com/HomerReid/libGDSII";
30 license = [ licenses.gpl2Only ];
31 maintainers = with maintainers; [
32 sheepforce
33 markuskowa
34 ];
35 platforms = platforms.linux;
36 };
37}