Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 52 lines 1.3 kB view raw
1{ lib, stdenv, fetchFromGitLab, perl, icmake, util-linux }: 2 3stdenv.mkDerivation rec { 4 pname = "yodl"; 5 version = "4.03.03"; 6 7 nativeBuildInputs = [ icmake ]; 8 9 buildInputs = [ perl ]; 10 11 src = fetchFromGitLab { 12 sha256 = "sha256-MeD/jjhwoiWTb/G8pHrnEEX22h+entPr9MhJ6WHO3DM="; 13 rev = version; 14 repo = "yodl"; 15 owner = "fbb-git"; 16 }; 17 18 setSourceRoot = '' 19 sourceRoot=$(echo */yodl) 20 ''; 21 22 preConfigure = '' 23 patchShebangs ./build 24 patchShebangs scripts/ 25 substituteInPlace INSTALL.im --replace /usr $out 26 substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl 27 substituteInPlace scripts/yodl2whatever.in --replace getopt ${util-linux}/bin/getopt 28 ''; 29 30 # Set TERM because icmbuild calls tput. 31 TERM = "xterm"; 32 33 buildPhase = '' 34 ./build programs 35 ./build macros 36 ./build man 37 ''; 38 39 installPhase = '' 40 ./build install programs 41 ./build install macros 42 ./build install man 43 ''; 44 45 meta = with lib; { 46 description = "A package that implements a pre-document language and tools to process it"; 47 homepage = "https://fbb-git.gitlab.io/yodl/"; 48 license = licenses.gpl3; 49 maintainers = with maintainers; [ pSub ]; 50 platforms = platforms.linux; 51 }; 52}