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
52
pkgs/applications/science/math/lp_solve/default.nix
Normal file
52
pkgs/applications/science/math/lp_solve/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, cctools, fixDarwinDylibNames }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "lp_solve";
|
||||
version = "5.5.2.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/lpsolve/lpsolve/${version}/lp_solve_${version}_source.tar.gz";
|
||||
sha256 = "sha256-bUq/9cxqqpM66ObBeiJt8PwLZxxDj2lxXUHQn+gfkC8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.isDarwin [
|
||||
cctools
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
buildPhase = let
|
||||
ccc = if stdenv.isDarwin then "ccc.osx" else "ccc";
|
||||
in ''
|
||||
runHook preBuild
|
||||
|
||||
(cd lpsolve55 && bash -x -e ${ccc})
|
||||
(cd lp_solve && bash -x -e ${ccc})
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -d -m755 $out/bin $out/lib $out/include/lpsolve
|
||||
install -m755 lp_solve/bin/*/lp_solve -t $out/bin
|
||||
install -m644 lpsolve55/bin/*/liblpsolve* -t $out/lib
|
||||
install -m644 lp_*.h -t $out/include/lpsolve
|
||||
|
||||
rm $out/lib/liblpsolve*.a
|
||||
rm $out/include/lpsolve/lp_solveDLL.h # A Windows header
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Mixed Integer Linear Programming (MILP) solver";
|
||||
homepage = "http://lpsolve.sourceforge.net";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ smironov ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue