uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/development/tools/profiling/sysprof/capture.nix
Normal file
32
pkgs/development/tools/profiling/sysprof/capture.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv
|
||||
, meson
|
||||
, ninja
|
||||
, sysprof
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libsysprof-capture";
|
||||
|
||||
inherit (sysprof) src version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dwith_sysprofd=none"
|
||||
"-Dlibsysprof=false"
|
||||
"-Dlibunwind=false"
|
||||
"-Dhelp=false"
|
||||
"-Denable_tools=false"
|
||||
"-Denable_tests=false"
|
||||
"-Denable_examples=false"
|
||||
];
|
||||
|
||||
meta = sysprof.meta // {
|
||||
description = "Static library for Sysprof capture data generation";
|
||||
license = lib.licenses.bsd2Patent;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
84
pkgs/development/tools/profiling/sysprof/default.nix
Normal file
84
pkgs/development/tools/profiling/sysprof/default.nix
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, desktop-file-utils
|
||||
, fetchurl
|
||||
, gettext
|
||||
, glib
|
||||
, gtk3
|
||||
, json-glib
|
||||
, itstool
|
||||
, libdazzle
|
||||
, libunwind
|
||||
, libxml2
|
||||
, meson
|
||||
, ninja
|
||||
, pango
|
||||
, pkg-config
|
||||
, polkit
|
||||
, shared-mime-info
|
||||
, systemd
|
||||
, wrapGAppsHook
|
||||
, gnome
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sysprof";
|
||||
version = "3.44.0";
|
||||
|
||||
outputs = [ "out" "lib" "dev" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "q12fW3GXOzCI1Yob/fHcI8OaAvX85OXpxz4DSxeLAFs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
desktop-file-utils
|
||||
gettext
|
||||
itstool
|
||||
libxml2
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
shared-mime-info
|
||||
wrapGAppsHook
|
||||
gnome.adwaita-icon-theme
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
json-glib
|
||||
pango
|
||||
polkit
|
||||
systemd
|
||||
libdazzle
|
||||
libunwind
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dsystemdunitdir=lib/systemd/system"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
versionPolicy = "odd-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "System-wide profiler for Linux";
|
||||
homepage = "https://wiki.gnome.org/Apps/Sysprof";
|
||||
longDescription = ''
|
||||
Sysprof is a sampling CPU profiler for Linux that uses the perf_event_open
|
||||
system call to profile the entire system, not just a single
|
||||
application. Sysprof handles shared libraries and applications
|
||||
do not need to be recompiled. In fact they don't even have to
|
||||
be restarted.
|
||||
'';
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = teams.gnome.members;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue