Merge pull request #114523 from MetaDark/poke

poke: init at 1.0

authored by

Mario Rodas and committed by
GitHub
66d7cb4f 4e365df3

+76
+74
pkgs/applications/editors/poke/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , gettext 5 + , help2man 6 + , pkg-config 7 + , texinfo 8 + , makeWrapper 9 + , boehmgc 10 + , readline 11 + , guiSupport ? false, tcl, tcllib, tk 12 + , miSupport ? true, json_c 13 + , nbdSupport ? true, libnbd 14 + , textStylingSupport ? true 15 + , dejagnu 16 + }: 17 + 18 + let 19 + isCross = stdenv.hostPlatform != stdenv.buildPlatform; 20 + in stdenv.mkDerivation rec { 21 + pname = "poke"; 22 + version = "1.0"; 23 + 24 + src = fetchurl { 25 + url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz"; 26 + hash = "sha256-3pMLhwDAdys8LNDQyjX1D9PXe9+CxiUetRa0noyiWwo="; 27 + }; 28 + 29 + postPatch = '' 30 + patchShebangs . 31 + ''; 32 + 33 + strictDeps = true; 34 + 35 + nativeBuildInputs = [ 36 + gettext 37 + help2man 38 + pkg-config 39 + texinfo 40 + ] ++ lib.optional guiSupport makeWrapper; 41 + 42 + buildInputs = [ boehmgc readline ] 43 + ++ lib.optional guiSupport tk 44 + ++ lib.optional miSupport json_c 45 + ++ lib.optional nbdSupport libnbd 46 + ++ lib.optional textStylingSupport gettext 47 + ++ lib.optional (!isCross) dejagnu; 48 + 49 + configureFlags = lib.optionals guiSupport [ 50 + "--with-tcl=${tcl}/lib" 51 + "--with-tk=${tk}/lib" 52 + "--with-tkinclude=${tk.dev}/include" 53 + ]; 54 + 55 + enableParallelBuilding = true; 56 + 57 + doCheck = !isCross; 58 + checkInputs = lib.optionals (!isCross) [ dejagnu ]; 59 + 60 + postFixup = lib.optionalString guiSupport '' 61 + wrapProgram "$out/bin/poke-gui" \ 62 + --prefix TCLLIBPATH ' ' ${tcllib}/lib/tcllib${tcllib.version} 63 + ''; 64 + 65 + meta = with lib; { 66 + description = "Interactive, extensible editor for binary data"; 67 + homepage = "http://www.jemarch.net/poke"; 68 + license = licenses.gpl3Plus; 69 + maintainers = with maintainers; [ AndersonTorres metadark ]; 70 + platforms = platforms.unix; 71 + }; 72 + } 73 + 74 + # TODO: Enable guiSupport by default once it's more than just a stub
+2
pkgs/top-level/all-packages.nix
··· 24574 24574 24575 24575 plugin-torture = callPackage ../applications/audio/plugin-torture { }; 24576 24576 24577 + poke = callPackage ../applications/editors/poke { }; 24578 + 24577 24579 polar-bookshelf = callPackage ../applications/misc/polar-bookshelf { }; 24578 24580 24579 24581 poezio = python3Packages.poezio;