about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/science/chemistry/libGDSII/default.nix
blob: 095e0ee182a3df6d9b7526c4165fd86c31bf2b99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
}:

stdenv.mkDerivation rec {
  pname = "libGDSII";
  version = "0.21";

  src = fetchFromGitHub {
    owner = "HomerReid";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-EXEt7l69etcBdDdEDlD1ODOdhTBZCVjgY1jhRUDd/W0=";
  };

  # File is missing in the repo but automake requires it
  postPatch = ''
    touch ChangeLog
  '';

  nativeBuildInputs = [ autoreconfHook ];

  meta = with lib; {
    description = "Library and command-line utility for reading GDSII geometry files";
    mainProgram = "GDSIIConvert";
    homepage = "https://github.com/HomerReid/libGDSII";
    license = [ licenses.gpl2Only ];
    maintainers = with maintainers; [ sheepforce markuskowa ];
    platforms = platforms.linux;
  };
}