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/development/octave-modules/octclip/default.nix
Normal file
29
pkgs/development/octave-modules/octclip/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ buildOctavePackage
|
||||
, lib
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
buildOctavePackage rec {
|
||||
pname = "octclip";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
|
||||
sha256 = "05ijh3izgfaan84n6zp690nap9vnz0zicjd0cgvd1c6askm7vxql";
|
||||
};
|
||||
|
||||
# The only compilation problem is that no formatting specifier was provided
|
||||
# for the error function. Because errorText is a string, I provide such a
|
||||
# formatting specifier.
|
||||
patchPhase = ''
|
||||
sed -i s/"error(errorText)"/"error(\"%s\", errorText)"/g src/*.cc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
name = "GNU Octave Clipping Polygons Tool";
|
||||
homepage = "https://octave.sourceforge.io/octclip/index.html";
|
||||
license = with licenses; [ gpl3Plus ]; # modified BSD?
|
||||
maintainers = with maintainers; [ KarlJoad ];
|
||||
description = "Perform boolean operations with polygons using the Greiner-Hormann algorithm";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue