nixpkgs/pkgs/development/tools/nemiver/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

89 lines
1.8 KiB
Nix

{ lib, stdenv
, fetchurl
, fetchpatch
, pkgconfig
, gnome3
, gtk3
, libxml2
, intltool
, itstool
, gdb
, boost
, sqlite
, libgtop
, glibmm
, gtkmm3
, vte
, gtksourceview
, gsettings-desktop-schemas
, gtksourceviewmm
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "nemiver";
version = "0.9.6";
src = fetchurl {
url = "mirror://gnome/sources/nemiver/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2";
};
nativeBuildInputs = [
libxml2
intltool
itstool
pkgconfig
wrapGAppsHook
];
buildInputs = [
gtk3
gdb
boost
sqlite
libgtop
glibmm
gtkmm3
vte
gtksourceview
gtksourceviewmm
gsettings-desktop-schemas
];
patches = [
# build fixes
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/nemiver/commit/e0e42221ceb77d88be64fac1c09792dc5c9e2f43.patch";
sha256 = "1g0ixll6yqfj6ysf50p0c7nmh3lgmb6ds15703q7ibnw7dyidvj8";
})
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/nemiver/commit/7005393a8c4d914eac9705e7f47818d0f4de3578.patch";
sha256 = "1mxb1sdqdj7dm204gja8cdygx8579bjriqqbb7cna9rj0m9c8pjg";
})
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/nemiver/commit/262cf9657f9c2727a816972b348692adcc666008.patch";
sha256 = "03jv6z54b8nzvplplapk4aj206zl1gvnv6iz0mad19g6yvfbw7a7";
})
];
configureFlags = [
"--enable-gsettings"
];
passthru = {
updateScript = gnome3.updateScript {
packageName = "nemiver";
versionPolicy = "none";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Nemiver";
description = "Easy to use standalone C/C++ debugger";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.juliendehos ];
};
}