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
29
pkgs/applications/science/geometry/antiprism/default.nix
Normal file
29
pkgs/applications/science/geometry/antiprism/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, libX11
|
||||
, libGL
|
||||
, libGLU
|
||||
, freeglut }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "antiprism";
|
||||
version = "0.29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "antiprism";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-MHzetkmRDLBXq3KrfXmUhxURY60/Y8z5zQsExT6N4cY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ libX11 libGLU libGL.dev freeglut.dev ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.antiprism.com";
|
||||
description = "A collection of programs for generating, manipulating, transforming and viewing polyhedra";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
};
|
||||
}
|
||||
29
pkgs/applications/science/geometry/drgeo/default.nix
Normal file
29
pkgs/applications/science/geometry/drgeo/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, stdenv, fetchurl, libglade, gtk2, guile, libxml2, perl
|
||||
, intltool, libtool, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "drgeo";
|
||||
version = "1.1.0";
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ofset/${pname}-${version}.tar.gz";
|
||||
sha256 = "05i2czgzhpzi80xxghinvkyqx4ym0gm9f38fz53idjhigiivp4wc";
|
||||
};
|
||||
patches = [ ./struct.patch ];
|
||||
|
||||
buildInputs = [libglade gtk2 guile libxml2
|
||||
perl intltool libtool pkg-config];
|
||||
|
||||
prebuild = ''
|
||||
cp drgeo.desktop.in drgeo.desktop
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Interactive geometry program";
|
||||
homepage = "https://sourceforge.net/projects/ofset";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
68
pkgs/applications/science/geometry/drgeo/struct.patch
Normal file
68
pkgs/applications/science/geometry/drgeo/struct.patch
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
-- drgeo-1.1.0/debian/patches/00list
|
||||
++ drgeo-1.1.0/debian/patches/00list
|
||||
@ -7 +7 @@
|
||||
|
||||
07-fix_ftbfs-gcc-4.5.dpatch
|
||||
nly in patch2:
|
||||
nchanged:
|
||||
-- drgeo-1.1.0.orig/debian/patches/07-fix_ftbfs-gcc-4.5.dpatch
|
||||
++ drgeo-1.1.0/debian/patches/07-fix_ftbfs-gcc-4.5.dpatch
|
||||
@ -0,0 +1,58 @@
|
||||
#! /bin/sh /usr/share/dpatch/dpatch-run
|
||||
## 07-fix_ftbfs-gcc-4.5.dpatch by Fabrice Coutadeur <fabric...@ubuntu.com>
|
||||
##
|
||||
## Description: fix FTBFS with gcc 4.5 with undefined reference to
|
||||
## `drgeoDialogData'
|
||||
## Author: Petr Gajdos <pgaj...@suse.cz>
|
||||
## Origin: https://build.opensuse.org/package/files?package=drgeo&project=openSUSE%3A11.3%3AContrib
|
||||
|
||||
...@dpatch@
|
||||
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' drgeo-1.1.0~/geo/drgeo_dialog.cc drgeo-1.1.0/geo/drgeo_dialog.cc
|
||||
--- drgeo-1.1.0~/geo/drgeo_dialog.cc 2003-10-27 10:17:25.000000000 +0000
|
||||
+++ drgeo-1.1.0/geo/drgeo_dialog.cc 2010-11-13 07:26:03.258908003 +0000
|
||||
@@ -38,12 +38,7 @@
|
||||
// Used in the style dialod callback, I know it's ugly, but so easy
|
||||
static drgeoFigure *selected_figure;
|
||||
|
||||
-struct
|
||||
-{
|
||||
- drgeoPoint mouse;
|
||||
- drgeoFigure *figure;
|
||||
-}
|
||||
-drgeoDialogData;
|
||||
+DialogData drgeoDialogData;
|
||||
|
||||
|
||||
static void drgeo_edit_dialog_cb (GtkWidget * dialog,
|
||||
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' drgeo-1.1.0~/geo/drgeo_dialog.h drgeo-1.1.0/geo/drgeo_dialog.h
|
||||
--- drgeo-1.1.0~/geo/drgeo_dialog.h 2003-06-12 22:30:23.000000000 +0000
|
||||
+++ drgeo-1.1.0/geo/drgeo_dialog.h 2010-11-13 07:26:03.258908003 +0000
|
||||
@@ -34,4 +34,11 @@
|
||||
}
|
||||
|
||||
#endif /* __cplusplus */
|
||||
+
|
||||
+typedef struct
|
||||
+{
|
||||
+ drgeoPoint mouse;
|
||||
+ drgeoFigure *figure;
|
||||
+} DialogData;
|
||||
+
|
||||
#endif
|
||||
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' drgeo-1.1.0~/geo/drgeo_figure.cc drgeo-1.1.0/geo/drgeo_figure.cc
|
||||
--- drgeo-1.1.0~/geo/drgeo_figure.cc 2005-07-14 07:30:01.000000000 +0000
|
||||
+++ drgeo-1.1.0/geo/drgeo_figure.cc 2010-11-13 07:26:03.258908003 +0000
|
||||
@@ -48,12 +48,7 @@
|
||||
#include "drgeo_dialog.h"
|
||||
#include "traite.h"
|
||||
|
||||
-extern struct
|
||||
-{
|
||||
- drgeoPoint mouse;
|
||||
- drgeoFigure *figure;
|
||||
-}
|
||||
-drgeoDialogData;
|
||||
+extern DialogData drgeoDialogData;
|
||||
|
||||
typedef struct drgeoSearchValue
|
||||
{
|
||||
24
pkgs/applications/science/geometry/gama/default.nix
Normal file
24
pkgs/applications/science/geometry/gama/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchurl, lib, expat, octave, libxml2, texinfo, zip }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gama";
|
||||
version = "2.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-AyUjcYDUjAYI4p0vVDO7SGqhbO83Kesd+JUUgQf5GPU=";
|
||||
};
|
||||
|
||||
buildInputs = [ expat ];
|
||||
|
||||
nativeBuildInputs = [ texinfo zip ];
|
||||
|
||||
checkInputs = [ octave libxml2 ];
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib ; {
|
||||
description = "Tools for adjustment of geodetic networks";
|
||||
homepage = "https://www.gnu.org/software/gama/";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
23
pkgs/applications/science/geometry/tetgen/1.4.nix
Normal file
23
pkgs/applications/science/geometry/tetgen/1.4.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tetgen";
|
||||
version = "1.4.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/files/tetgen${version}.tar.gz";
|
||||
sha256 = "0d70vjqdapmy1ghlsxjlvl5z9yp310zw697bapc4zxmp0sxi29wm";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp tetgen $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator";
|
||||
homepage = "http://tetgen.org/";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
31
pkgs/applications/science/geometry/tetgen/default.nix
Normal file
31
pkgs/applications/science/geometry/tetgen/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchurl, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tetgen";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://wias-berlin.de/software/tetgen/1.5/src/tetgen${version}.tar.gz";
|
||||
sha256 = "sha256-h7XmHr06Rx/E8s3XEkwrEd1mOfT+sflBpdL1EQ0Fzjk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{bin,lib,include}
|
||||
cp tetgen $out/bin
|
||||
cp libtet.a $out/lib
|
||||
cp ../tetgen.{cxx,h} $out/include
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator";
|
||||
homepage = "http://tetgen.org/";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue