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
80
pkgs/tools/graphics/ploticus/default.nix
Normal file
80
pkgs/tools/graphics/ploticus/default.nix
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, zlib
|
||||
, libX11
|
||||
, libpng
|
||||
, libjpeg
|
||||
, gd
|
||||
, freetype
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ploticus";
|
||||
version = "2.42";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ploticus/ploticus/${version}/ploticus${lib.replaceStrings [ "." ] [ "" ] version}_src.tar.gz";
|
||||
sha256 = "PynkufQFIDqT7+yQDlgW2eG0OBghiB4kHAjKt91m4LA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Replace hardcoded FHS path with $out.
|
||||
./ploticus-install.patch
|
||||
|
||||
# Set the location of the PREFABS directory.
|
||||
./set-prefabs-dir.patch
|
||||
|
||||
# Use gd from Nixpkgs instead of the vendored one.
|
||||
# This is required for non-ASCII fonts to work:
|
||||
# http://ploticus.sourceforge.net/doc/fonts.html
|
||||
./use-gd-package.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
libX11
|
||||
libpng
|
||||
gd
|
||||
freetype
|
||||
libjpeg
|
||||
];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
preBuild = ''
|
||||
cd src
|
||||
'';
|
||||
makeFlags = [ "CC=cc" ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/bin"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
cd ..
|
||||
|
||||
# Install the “prefabs”.
|
||||
mkdir -p "$out/share/ploticus/prefabs"
|
||||
cp -rv prefabs/* "$out/share/ploticus/prefabs"
|
||||
|
||||
# Add aliases for backwards compatibility.
|
||||
ln -s "pl" "$out/bin/ploticus"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A non-interactive software package for producing plots and charts";
|
||||
longDescription = ''
|
||||
Ploticus is a free, GPL'd, non-interactive
|
||||
software package for producing plots, charts, and graphics from
|
||||
data. Ploticus is good for automated or just-in-time graph
|
||||
generation, handles date and time data nicely, and has basic
|
||||
statistical capabilities. It allows significant user control
|
||||
over colors, styles, options and details.
|
||||
'';
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
homepage = "http://ploticus.sourceforge.net/";
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue