nixpkgs/pkgs/applications/editors/bless/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2019-12-15 00:43:16 +01:00
, fetchFromGitHub
, pkg-config
2019-12-15 00:43:16 +01:00
, mono
2021-05-18 17:06:48 +02:00
, meson
, ninja
2019-12-15 00:43:16 +01:00
, gtk-sharp-2_0
, gettext
, makeWrapper
, glib
, gtk2-x11
2021-05-18 17:06:48 +02:00
, libxslt
, docbook_xsl
, python3
, itstool
2019-12-15 00:43:16 +01:00
}:
stdenv.mkDerivation rec {
pname = "bless";
2021-05-18 17:06:48 +02:00
version = "0.6.3";
2019-12-15 00:43:16 +01:00
src = fetchFromGitHub {
owner = "afrantzis";
repo = pname;
rev = "v${version}";
2021-05-18 17:06:48 +02:00
hash = "sha256-rS+vJX0y9v1TiPsRfABroHiTuENQKEOxNsyKwagRuHM=";
2019-12-15 00:43:16 +01:00
};
buildInputs = [
gtk-sharp-2_0
mono
# runtime only deps
glib
gtk2-x11
];
nativeBuildInputs = [
pkg-config
2021-05-18 17:06:48 +02:00
meson
ninja
2019-12-15 00:43:16 +01:00
gettext
makeWrapper
2021-05-18 17:06:48 +02:00
libxslt
docbook_xsl
python3
itstool
2019-12-15 00:43:16 +01:00
];
2022-03-29 04:57:01 +02:00
mesonFlags = [
"-Dtests=false" # requires NUnit
];
postPatch = ''
patchShebangs .
'';
2019-12-15 00:43:16 +01:00
preFixup = ''
2021-05-18 17:06:48 +02: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 ]}
'';
2019-12-15 00:43:16 +01:00
meta = with lib; {
2019-12-15 00:43:16 +01:00
homepage = "https://github.com/afrantzis/bless";
description = "Gtk# Hex Editor";
maintainers = [ maintainers.mkg20001 ];
license = licenses.gpl2;
platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ];
};
}