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
69
pkgs/applications/graphics/xfig/default.nix
Normal file
69
pkgs/applications/graphics/xfig/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, xlibsWrapper
|
||||
, makeWrapper
|
||||
, imagemagick
|
||||
, libXpm
|
||||
, libXmu
|
||||
, libXi
|
||||
, libXp
|
||||
, Xaw3d
|
||||
, libXaw
|
||||
, fig2dev
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xfig";
|
||||
version = "3.2.8b";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/mcj/xfig-${version}.tar.xz";
|
||||
sha256 = "0fndgbm1mkqb1sn2v2kj3nx9mxj70jbp31y2bjvzcmmkry0q3k5j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ imagemagick makeWrapper ];
|
||||
|
||||
buildInputs = [
|
||||
xlibsWrapper
|
||||
libXpm
|
||||
libXmu
|
||||
libXi
|
||||
libXp
|
||||
Xaw3d
|
||||
libXaw
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/main.c --replace '"fig2dev"' '"${fig2dev}/bin/fig2dev"'
|
||||
substituteInPlace xfig.desktop --replace "/usr/bin/" "$out/bin/"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/X11/app-defaults
|
||||
cp app-defaults/* $out/share/X11/app-defaults
|
||||
|
||||
wrapProgram $out/bin/xfig \
|
||||
--set XAPPLRESDIR $out/share/X11/app-defaults
|
||||
|
||||
mkdir -p $out/share/icons/hicolor/{16x16,22x22,48x48,64x64}/apps
|
||||
|
||||
for dimension in 16x16 22x22 48x48; do
|
||||
convert doc/html/images/xfig-logo.png -geometry $dimension\
|
||||
$out/share/icons/hicolor/16x16/apps/xfig.png
|
||||
done
|
||||
install doc/html/images/xfig-logo.png \
|
||||
$out/share/icons/hicolor/64x64/apps/xfig.png
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "An interactive drawing tool for X11";
|
||||
longDescription = ''
|
||||
Note that you need to have the <literal>netpbm</literal> tools
|
||||
in your path to export bitmaps.
|
||||
'';
|
||||
inherit (fig2dev.meta) license homepage platforms maintainers;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue