2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, imagemagick, libpng }:
|
2018-01-08 14:13:31 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "optar";
|
2018-01-08 14:13:31 +00:00
|
|
|
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 \
|
|
|
|
--replace 'convert ' "${stdenv.lib.getBin imagemagick}/bin/convert "
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "OPTical ARchiver - it's a codec for encoding data on paper";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ronja.twibright.com/optar/";
|
2018-01-08 14:13:31 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = with platforms; linux; # possibly others, but only tested on Linux
|
|
|
|
};
|
|
|
|
}
|