lol
at 16.09-beta 45 lines 1.2 kB view raw
1{ stdenv, fetchFromGitHub, perl, icmake, utillinux }: 2 3stdenv.mkDerivation rec { 4 name = "yodl-${version}"; 5 version = "3.08.01"; 6 7 buildInputs = [ perl icmake ]; 8 9 src = fetchFromGitHub { 10 sha256 = "0sks4phdy8qf6lmbjardrk0gl4v7crr4vjdgwpkkc8d5lzvcx7j5"; 11 rev = version; 12 repo = "yodl"; 13 owner = "fbb-git"; 14 }; 15 16 sourceRoot = "yodl-${version}-src/yodl"; 17 18 preConfigure = '' 19 patchShebangs ./build 20 patchShebangs scripts/ 21 substituteInPlace INSTALL.im --replace /usr $out 22 substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl 23 substituteInPlace scripts/yodl2whatever.in --replace getopt ${utillinux}/bin/getopt 24 ''; 25 26 buildPhase = '' 27 ./build programs 28 ./build macros 29 ./build man 30 ''; 31 32 installPhase = '' 33 ./build install programs 34 ./build install macros 35 ./build install man 36 ''; 37 38 meta = with stdenv.lib; { 39 description = "A package that implements a pre-document language and tools to process it"; 40 homepage = https://fbb-git.github.io/yodl/; 41 license = licenses.gpl3; 42 maintainers = with maintainers; [ nckx pSub ]; 43 platforms = platforms.linux; 44 }; 45}