Loading pkgs/by-name/xa/xastir/package.nix +40 −8 Original line number Diff line number Diff line Loading @@ -4,9 +4,12 @@ fetchFromGitHub, autoreconfHook, pkg-config, bashNonInteractive, curl, db, gnused, libgeotiff, libtiff, xorg, motif, pcre2, Loading @@ -24,19 +27,22 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "xastir"; repo = "xastir"; rev = "Release-${version}"; tag = "Release-${version}"; hash = "sha256-EQXSfH4b5vMiprFcMXCUDNl+R1cHSj9CyhZnUPAMoCw="; }; nativeBuildInputs = [ autoreconfHook pkg-config perl ]; buildInputs = [ bashNonInteractive curl db libgeotiff libtiff xorg.libXpm xorg.libXt motif Loading @@ -48,15 +54,41 @@ stdenv.mkDerivation rec { libax25 ]; configureFlags = [ "--with-motif-includes=${motif}/include" ]; strictDeps = true; configureFlags = [ "--with-motif-includes=${lib.getDev motif}/include" "ac_cv_path_gm=${lib.getExe' graphicsmagick "gm"}" "ac_cv_path_convert=${lib.getExe' graphicsmagick "convert"}" "ac_cv_header_xtiffio_h=yes" "ac_cv_path_GMAGIC_BIN=${lib.getExe' (lib.getDev graphicsmagick) "GraphicsMagick-config"}" ]; makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ]; postPatch = '' patchShebangs --build scripts/lang*.pl # checks for files in /usr/bin/ substituteInPlace acinclude.m4 \ --replace-fail "AC_CHECK_FILE" "# AC_CHECK_FILE" # would pick up builder sed from $PATH substituteInPlace configure.ac \ --replace-fail 'AC_DEFINE_UNQUOTED(SED_PATH, "''${sed}", [Path to sed])' \ 'AC_DEFINE_UNQUOTED(SED_PATH, "${lib.getExe gnused}", [Path to sed])' ''; postPatch = "patchShebangs ."; preInstall = '' patchShebangs --host --update . ''; meta = with lib; { meta = { description = "Graphical APRS client"; homepage = "https://xastir.org"; license = licenses.gpl2; maintainers = [ maintainers.ehmry ]; platforms = platforms.linux; homepage = "https://github.com/xastir/xastir"; license = lib.licenses.gpl2Plus; maintainers = [ lib.maintainers.ehmry ]; platforms = lib.platforms.linux; }; } Loading
pkgs/by-name/xa/xastir/package.nix +40 −8 Original line number Diff line number Diff line Loading @@ -4,9 +4,12 @@ fetchFromGitHub, autoreconfHook, pkg-config, bashNonInteractive, curl, db, gnused, libgeotiff, libtiff, xorg, motif, pcre2, Loading @@ -24,19 +27,22 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "xastir"; repo = "xastir"; rev = "Release-${version}"; tag = "Release-${version}"; hash = "sha256-EQXSfH4b5vMiprFcMXCUDNl+R1cHSj9CyhZnUPAMoCw="; }; nativeBuildInputs = [ autoreconfHook pkg-config perl ]; buildInputs = [ bashNonInteractive curl db libgeotiff libtiff xorg.libXpm xorg.libXt motif Loading @@ -48,15 +54,41 @@ stdenv.mkDerivation rec { libax25 ]; configureFlags = [ "--with-motif-includes=${motif}/include" ]; strictDeps = true; configureFlags = [ "--with-motif-includes=${lib.getDev motif}/include" "ac_cv_path_gm=${lib.getExe' graphicsmagick "gm"}" "ac_cv_path_convert=${lib.getExe' graphicsmagick "convert"}" "ac_cv_header_xtiffio_h=yes" "ac_cv_path_GMAGIC_BIN=${lib.getExe' (lib.getDev graphicsmagick) "GraphicsMagick-config"}" ]; makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ]; postPatch = '' patchShebangs --build scripts/lang*.pl # checks for files in /usr/bin/ substituteInPlace acinclude.m4 \ --replace-fail "AC_CHECK_FILE" "# AC_CHECK_FILE" # would pick up builder sed from $PATH substituteInPlace configure.ac \ --replace-fail 'AC_DEFINE_UNQUOTED(SED_PATH, "''${sed}", [Path to sed])' \ 'AC_DEFINE_UNQUOTED(SED_PATH, "${lib.getExe gnused}", [Path to sed])' ''; postPatch = "patchShebangs ."; preInstall = '' patchShebangs --host --update . ''; meta = with lib; { meta = { description = "Graphical APRS client"; homepage = "https://xastir.org"; license = licenses.gpl2; maintainers = [ maintainers.ehmry ]; platforms = platforms.linux; homepage = "https://github.com/xastir/xastir"; license = lib.licenses.gpl2Plus; maintainers = [ lib.maintainers.ehmry ]; platforms = lib.platforms.linux; }; }