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
57
pkgs/development/octave-modules/level-set/default.nix
Normal file
57
pkgs/development/octave-modules/level-set/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ buildOctavePackage
|
||||
, stdenv
|
||||
, lib
|
||||
, fetchgit
|
||||
, automake
|
||||
, autoconf
|
||||
, autoconf-archive
|
||||
, parallel
|
||||
}:
|
||||
|
||||
buildOctavePackage rec {
|
||||
pname = "level-set";
|
||||
version = "2019-04-13";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.code.sf.net/p/octave/${pname}";
|
||||
rev = "dbf46228a7582eef4fe5470fd00bc5b421dd33a5";
|
||||
sha256 = "14qwa4j24m2j7njw8gbagkgmp040h6k0h7kyrrzgb9y0jm087qkl";
|
||||
fetchSubmodules = false;
|
||||
};
|
||||
|
||||
# The monstrosity of a regex below is to ensure that only error() calls are
|
||||
# corrected to have a %s format specifier. However, logic_error() also
|
||||
# exists, (a simple regex also matches that), but logic_error() doesn't
|
||||
# require a format specifier. So, this regex was born to handle that...
|
||||
patchPhase = ''
|
||||
substituteInPlace build.sh --replace "level-set-0.3.1" "${pname}-${version}" \
|
||||
--replace "\`pwd\`" '/build'
|
||||
sed -i -E 's#[^[:graph:]]error \(# error \(\"%s\", #g' src/*.cpp
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
automake
|
||||
autoconf
|
||||
autoconf-archive
|
||||
];
|
||||
|
||||
requiredOctavePackages = [
|
||||
parallel
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
mkdir -p $out
|
||||
source ./build.sh
|
||||
cd -
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
name = "Level Set";
|
||||
homepage = "https://octave.sourceforge.io/level-set/index.html";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ KarlJoad ];
|
||||
description = "Routines for calculating the time-evolution of the level-set equation and extracting geometric information from the level-set function";
|
||||
# /build/level-set-2019-04-13.tar.gz: Cannot open: No such file or directory
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue