Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 46 lines 1.5 kB view raw
1{ lib, stdenv, fetchurl, fetchpatch 2, autoreconfHook, bison, flex, pkg-config 3, bzip2, check, ncurses, util-linux, zlib 4}: 5 6stdenv.mkDerivation rec { 7 pname = "gfs2-utils"; 8 version = "3.4.1"; 9 10 src = fetchurl { 11 url = "https://pagure.io/gfs2-utils/archive/${version}/gfs2-utils-${version}.tar.gz"; 12 sha256 = "sha256-gwKxBBG5PtG4/RxX4sUC25ZeG8K2urqVkFDKL7NS4ZI="; 13 }; 14 15 patches = [ 16 # pull pending upstream inclusion fix for ncurses-6.3: sent upstream over email. 17 (fetchpatch { 18 name = "ncurses-6.3.patch"; 19 url = "https://pagure.io/fork/slyfox/gfs2-utils/c/c927b635f380cca77665195a3aaae804d92870a4.patch"; 20 sha256 = "sha256-0M1xAqRXoUi2el03WODF/nqEe9JEE5GehMWs776QZNI="; 21 }) 22 ]; 23 postPatch = '' 24 # Apply fix for ncurses-6.3. Upstream development branch already reworked the code. 25 # To be removed on next reelase. 26 substituteInPlace gfs2/edit/gfs2hex.c --replace 'printw(title);' 'printw("%s",title);' 27 ''; 28 29 outputs = [ "bin" "doc" "out" "man" ]; 30 31 nativeBuildInputs = [ autoreconfHook bison flex pkg-config ]; 32 buildInputs = [ bzip2 ncurses util-linux zlib ]; 33 34 nativeCheckInputs = [ check ]; 35 doCheck = true; 36 37 enableParallelBuilding = true; 38 39 meta = with lib; { 40 homepage = "https://pagure.io/gfs2-utils"; 41 description = "Tools for creating, checking and working with gfs2 filesystems"; 42 maintainers = with maintainers; [ qyliss ]; 43 license = [ licenses.gpl2Plus licenses.lgpl2Plus ]; 44 platforms = platforms.linux; 45 }; 46}