2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, mono
|
2021-05-20 23:08:51 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk-sharp-2_0
|
|
|
|
, gettext
|
|
|
|
, makeWrapper
|
|
|
|
, glib
|
|
|
|
, gtk2-x11
|
2021-05-20 23:08:51 +00:00
|
|
|
, libxslt
|
|
|
|
, docbook_xsl
|
|
|
|
, python3
|
2022-03-30 09:31:56 +00:00
|
|
|
, itstool
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bless";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "afrantzis";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
hash = "sha256-rS+vJX0y9v1TiPsRfABroHiTuENQKEOxNsyKwagRuHM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk-sharp-2_0
|
|
|
|
mono
|
|
|
|
# runtime only deps
|
|
|
|
glib
|
|
|
|
gtk2-x11
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
makeWrapper
|
2021-05-20 23:08:51 +00:00
|
|
|
libxslt
|
|
|
|
docbook_xsl
|
|
|
|
python3
|
2022-03-30 09:31:56 +00:00
|
|
|
itstool
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dtests=false" # requires NUnit
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preFixup = ''
|
2021-05-20 23:08:51 +00:00
|
|
|
MPATH="${gtk-sharp-2_0}/lib/mono/gtk-sharp-2.0:${glib.out}/lib:${gtk2-x11}/lib:${gtk-sharp-2_0}/lib"
|
|
|
|
wrapProgram $out/bin/bless --prefix MONO_PATH : "$MPATH" --prefix LD_LIBRARY_PATH : "$MPATH" --prefix PATH : ${lib.makeBinPath [ mono ]}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/afrantzis/bless";
|
|
|
|
description = "Gtk# Hex Editor";
|
|
|
|
maintainers = [ maintainers.mkg20001 ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
|
|
|
};
|
|
|
|
}
|