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
87
pkgs/tools/misc/gaphor/default.nix
Normal file
87
pkgs/tools/misc/gaphor/default.nix
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, copyDesktopItems
|
||||
, gobject-introspection
|
||||
, poetry-core
|
||||
, wrapGAppsHook
|
||||
, gtksourceview4
|
||||
, pango
|
||||
, gaphas
|
||||
, generic
|
||||
, jedi
|
||||
, pycairo
|
||||
, pygobject3
|
||||
, tinycss2
|
||||
, gtk3
|
||||
, librsvg
|
||||
, makeDesktopItem
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "gaphor";
|
||||
version = "2.8.2";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-+qqsSLjdY2I19fxdfkOEQ9DhTTHccUDll4O5yqtLiz0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
gobject-introspection
|
||||
poetry-core
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
# Setting gobject-introspection on booth nativeBuildInputs and
|
||||
# buildInputs because of #56943. This recognizes pango, avoiding
|
||||
# a "ValueError: Namespace PangoCairo not available".
|
||||
buildInputs = [
|
||||
gobject-introspection
|
||||
gtksourceview4
|
||||
pango
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gaphas
|
||||
generic
|
||||
jedi
|
||||
pycairo
|
||||
pygobject3
|
||||
tinycss2
|
||||
];
|
||||
|
||||
desktopItems = makeDesktopItem {
|
||||
name = pname;
|
||||
exec = "gaphor";
|
||||
icon = "gaphor";
|
||||
comment = meta.description;
|
||||
desktopName = "Gaphor";
|
||||
};
|
||||
|
||||
# We need to wrap it manually to resolve all icons
|
||||
dontWrapGApps = true;
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 $out/${python.sitePackages}/gaphor/ui/icons/hicolor/scalable/apps/org.gaphor.Gaphor.svg $out/share/pixmaps/gaphor.svg
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/gaphor \
|
||||
''${gappsWrapperArgs[@]} \
|
||||
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
||||
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple modeling tool written in Python";
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
homepage = "https://github.com/gaphor/gaphor";
|
||||
license = licenses.asl20;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue