1{
2 lib,
3 stdenv,
4 fetchurl,
5 boost,
6 libtool,
7 groff,
8 ghostscript,
9 libgcrypt ? null,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "srecord";
14 version = "1.64";
15
16 src = fetchurl {
17 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
18 sha256 = "1qk75q0k5vzmm3932q9hqz2gp8n9rrdfjacsswxc02656f3l3929";
19 };
20
21 buildInputs = [
22 boost
23 libtool
24 groff
25 ghostscript
26 libgcrypt
27 ];
28
29 configureFlags = lib.optional (libgcrypt == null) "--without-gcrypt";
30
31 meta = with lib; {
32 description = "Collection of powerful tools for manipulating EPROM load files";
33 homepage = "https://srecord.sourceforge.net/";
34 license = licenses.gpl3Plus;
35 maintainers = [ maintainers.bjornfor ];
36 platforms = lib.platforms.unix;
37 };
38}