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
43
pkgs/applications/science/math/colpack/default.nix
Normal file
43
pkgs/applications/science/math/colpack/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "ColPack";
|
||||
version = "1.0.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CSCsw";
|
||||
repo = pname;
|
||||
rev = "v" + version;
|
||||
sha256 = "1p05vry940mrjp6236c0z83yizmw9pk6ly2lb7d8rpb7j9h03glr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-openmp=${if stdenv.isLinux then "yes" else "no"}"
|
||||
"--enable-examples=no"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# Remove libtool archive
|
||||
rm $out/lib/*.la
|
||||
|
||||
# Remove compiled examples (Basic examples get compiled anyway)
|
||||
rm -r $out/examples
|
||||
|
||||
# Copy the example sources (Basic tree contains scripts and object files)
|
||||
mkdir -p $out/share/ColPack/examples/Basic
|
||||
cp SampleDrivers/Basic/*.cpp $out/share/ColPack/examples/Basic
|
||||
cp -r SampleDrivers/Matrix* $out/share/ColPack/examples
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A package comprising of implementations of algorithms for
|
||||
vertex coloring and derivative computation";
|
||||
homepage = "http://cscapes.cs.purdue.edu/coloringpage/software.htm#functionalities";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ edwtjo ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue