2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, imagemagick, libpng }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "optar";
|
|
|
|
version = "20150210";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ronja.twibright.com/optar.tgz";
|
|
|
|
sha256 = "10lr31k3xfcpa6vxkbl3abph7j3gks2210489khnnzmhmfdnm1a4";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpng ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr/local $out
|
|
|
|
|
|
|
|
substituteInPlace pgm2ps \
|
2021-01-15 22:18:51 +00:00
|
|
|
--replace 'convert ' "${lib.getBin imagemagick}/bin/convert "
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "OPTical ARchiver - it's a codec for encoding data on paper";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ronja.twibright.com/optar/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = with platforms; linux; # possibly others, but only tested on Linux
|
|
|
|
};
|
|
|
|
}
|