xfig: cosmetic rewriting

This commit is contained in:
AndersonTorres 2021-02-03 01:05:49 -03:00
parent b673417493
commit daecbd7b06

View File

@ -1,5 +1,15 @@
{ lib, stdenv, fetchurl, xlibsWrapper, makeWrapper, libXpm
, libXmu, libXi, libXp, Xaw3d, libXaw, fig2dev
{ lib
, stdenv
, fetchurl
, xlibsWrapper
, makeWrapper
, libXpm
, libXmu
, libXi
, libXp
, Xaw3d
, libXaw
, fig2dev
}:
stdenv.mkDerivation rec {
@ -11,6 +21,18 @@ stdenv.mkDerivation rec {
sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
xlibsWrapper
libXpm
libXmu
libXi
libXp
Xaw3d
libXaw
];
postPatch = ''
sed -i 's:"fig2dev":"${fig2dev}/bin/fig2dev":' src/main.c
'';
@ -25,10 +47,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d libXaw ];
meta = with lib; {
description = "An interactive drawing tool for X11";
longDescription = ''