2015-06-29 17:03:33 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xulrunner }:
|
2013-11-30 16:27:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-16 05:33:40 +01:00
|
|
|
version = "2.0.18";
|
2015-03-31 04:59:04 +02:00
|
|
|
name = "pencil-${version}";
|
2013-11-30 16:27:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-31 04:59:04 +02:00
|
|
|
url = "https://github.com/prikhi/pencil/releases/download/v${version}/Pencil-${version}-linux-pkg.tar.gz";
|
2016-03-16 05:33:40 +01:00
|
|
|
sha256 = "0x0kibb2na12fwl0x68xhkjpbm5h2widm346cx2r29gp1kq9kklc";
|
2013-11-30 16:27:42 +01:00
|
|
|
};
|
|
|
|
|
2015-03-31 04:59:04 +02:00
|
|
|
buildPhase = "";
|
2013-11-30 16:27:42 +01:00
|
|
|
|
2015-06-29 17:03:33 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2013-11-30 16:27:42 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"
|
|
|
|
cp -r usr/* "$out"
|
2015-06-29 17:03:33 +02:00
|
|
|
sed -e "s|/usr/share/evolus-pencil|$out/share/evolus-pencil|" \
|
2013-11-30 16:27:42 +01:00
|
|
|
-i "$out/bin/pencil"
|
|
|
|
sed -e "s|/usr/bin/pencil|$out/bin/pencil|" \
|
2015-03-31 04:59:04 +02:00
|
|
|
-e "s|Icon=.*|Icon=$out/share/evolus-pencil/skin/classic/icon.svg|" \
|
2013-11-30 16:27:42 +01:00
|
|
|
-i "$out/share/applications/pencil.desktop"
|
2015-06-29 17:03:33 +02:00
|
|
|
|
|
|
|
wrapProgram $out/bin/pencil \
|
|
|
|
--prefix PATH ":" ${xulrunner}/bin
|
2013-11-30 16:27:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GUI prototyping/mockup tool";
|
2015-03-31 04:59:04 +02:00
|
|
|
homepage = http://github.com/prikhi/pencil;
|
2013-11-30 16:27:42 +01:00
|
|
|
license = licenses.gpl2; # Commercial license is also available
|
2015-03-31 04:59:04 +02:00
|
|
|
maintainers = with maintainers; [ bjornfor prikhi ];
|
2013-11-30 16:27:42 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|