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
46
pkgs/development/libraries/dxflib/default.nix
Normal file
46
pkgs/development/libraries/dxflib/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, qmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.26.4";
|
||||
pname = "dxflib";
|
||||
src = fetchurl {
|
||||
url = "https://qcad.org/archives/dxflib/${pname}-${version}-src.tar.gz";
|
||||
sha256 = "0pwic33mj6bp4axai5jiyn4xqf31y0xmb1i0pcf55b2h9fav8zah";
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
];
|
||||
dontWrapQtApps = true;
|
||||
preConfigure = ''
|
||||
sed -i 's/CONFIG += staticlib/CONFIG += shared/' dxflib.pro
|
||||
'';
|
||||
installPhase = ''
|
||||
install -d -m 0755 $out/lib
|
||||
cp -pr *.so* $out/lib
|
||||
install -d -m 0755 $out/include/dxflib
|
||||
cp -pr src/*.h $out/include/dxflib
|
||||
# Generate pkg-config file
|
||||
install -d -m 0755 $out/lib/pkgconfig
|
||||
cat << 'EOF' > $out/lib/pkgconfig/dxflib.pc
|
||||
prefix=${placeholder "out"}
|
||||
libdir=${placeholder "out"}/lib
|
||||
includedir=${placeholder "out"}/include
|
||||
Name: dxflib
|
||||
Description: A C++ library for reading and writing DXF files
|
||||
Version: %{version}
|
||||
Libs: -L${placeholder "out"}/lib -ldxflib
|
||||
Cflags: -I${placeholder "out"}/include/dxflib
|
||||
EOF
|
||||
'';
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://qcad.org/en/90-dxflib";
|
||||
maintainers = with lib.maintainers; [raskin];
|
||||
platforms = lib.platforms.linux;
|
||||
description = "DXF file format library";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue