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
22
pkgs/applications/science/chemistry/gwyddion/codegen.patch
Normal file
22
pkgs/applications/science/chemistry/gwyddion/codegen.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
--- gwyddion-2.55.orig/configure 2019-11-04 01:25:31.000000000 -0800
|
||||
+++ gwyddion-2.55/configure 2020-03-20 18:49:43.860452655 -0700
|
||||
@@ -18560,7 +18560,7 @@
|
||||
fi
|
||||
if test "x$embed_pygtk" = xno; then
|
||||
if test "x$PYGTK_CODEGENDIR" = 'x'; then
|
||||
- PYGTK_CODEGENDIR=`$PKG_CONFIG --variable=codegendir pygtk-2.0`
|
||||
+ PYGTK_CODEGENDIR=`$PKG_CONFIG --variable=codegendir pygobject-2.0`
|
||||
fi
|
||||
else
|
||||
# Some silly OSes want to remove pygtk2. We can build pygwy without
|
||||
--- gwyddion-2.55.orig/configure.ac 2019-11-04 01:25:16.000000000 -0800
|
||||
+++ gwyddion-2.55/configure.ac 2020-03-20 18:52:55.042724547 -0700
|
||||
@@ -270,7 +270,7 @@
|
||||
[embed_pygtk=yes; pygwy_warn=" (embedded pygtk2)"])
|
||||
if test "x$embed_pygtk" = xno; then
|
||||
if test "x$PYGTK_CODEGENDIR" = 'x'; then
|
||||
- PYGTK_CODEGENDIR=`$PKG_CONFIG --variable=codegendir pygtk-2.0`
|
||||
+ PYGTK_CODEGENDIR=`$PKG_CONFIG --variable=codegendir pygobject-2.0`
|
||||
fi
|
||||
else
|
||||
# Some silly OSes want to remove pygtk2. We can build pygwy without
|
||||
72
pkgs/applications/science/chemistry/gwyddion/default.nix
Normal file
72
pkgs/applications/science/chemistry/gwyddion/default.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
{ lib, stdenv, fetchurl, gtk2, pkg-config, fftw, file,
|
||||
pythonSupport ? false, python2Packages,
|
||||
gnome2,
|
||||
openexrSupport ? true, openexr,
|
||||
libzipSupport ? true, libzip,
|
||||
libxml2Support ? true, libxml2,
|
||||
libwebpSupport ? true, libwebp,
|
||||
# libXmu is not used if libunique is.
|
||||
libXmuSupport ? false, xorg,
|
||||
libxsltSupport ? true, libxslt,
|
||||
fitsSupport ? true, cfitsio,
|
||||
zlibSupport ? true, zlib,
|
||||
libuniqueSupport ? true, libunique,
|
||||
libpngSupport ? true, libpng,
|
||||
openglSupport ? !stdenv.isDarwin
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (python2Packages) pygtk pygobject2 python;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gwyddion";
|
||||
version = "2.60";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gwyddion/gwyddion-${version}.tar.xz";
|
||||
sha256 = "sha256-38PIardlOzDrVKWvV4AiQlecTYmwYegtzRya713Au/Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config file ];
|
||||
|
||||
buildInputs = with lib;
|
||||
[ gtk2 fftw ] ++
|
||||
optional openglSupport gnome2.gtkglext ++
|
||||
optional openexrSupport openexr ++
|
||||
optional libXmuSupport xorg.libXmu ++
|
||||
optional fitsSupport cfitsio ++
|
||||
optional libpngSupport libpng ++
|
||||
optional libxsltSupport libxslt ++
|
||||
optional libxml2Support libxml2 ++
|
||||
optional libwebpSupport libwebp ++
|
||||
optional zlibSupport zlib ++
|
||||
optional libuniqueSupport libunique ++
|
||||
optional libzipSupport libzip;
|
||||
|
||||
propagatedBuildInputs = with lib;
|
||||
optionals pythonSupport [ pygtk pygobject2 python gnome2.gtksourceview ];
|
||||
|
||||
# This patch corrects problems with python support, but should apply cleanly
|
||||
# regardless of whether python support is enabled, and have no effects if
|
||||
# it is disabled.
|
||||
patches = [ ./codegen.patch ];
|
||||
meta = {
|
||||
homepage = "http://gwyddion.net/";
|
||||
|
||||
description = "Scanning probe microscopy data visualization and analysis";
|
||||
|
||||
longDescription = ''
|
||||
A modular program for SPM (scanning probe microscopy) data
|
||||
visualization and analysis. Primarily it is intended for the
|
||||
analysis of height fields obtained by scanning probe microscopy
|
||||
techniques (AFM, MFM, STM, SNOM/NSOM) and it supports a lot of
|
||||
SPM data formats. However, it can be used for general height
|
||||
field and (greyscale) image processing, for instance for the
|
||||
analysis of profilometry data or thickness maps from imaging
|
||||
spectrophotometry.
|
||||
'';
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
maintainers = [ lib.maintainers.cge ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue