mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
888 B
Nix
36 lines
888 B
Nix
{ lib, stdenv, fetchurl, imagemagick, libpng }:
|
|
|
|
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 \
|
|
--replace 'convert ' "${lib.getBin imagemagick}/bin/convert "
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "OPTical ARchiver - it's a codec for encoding data on paper";
|
|
homepage = "http://ronja.twibright.com/optar/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = with platforms; linux; # possibly others, but only tested on Linux
|
|
};
|
|
}
|