2015-06-29 17:03:33 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xulrunner }:
|
2013-11-30 16:27:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-22 01:08:14 +01:00
|
|
|
version = "2.0.21";
|
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";
|
2017-01-22 01:08:14 +01:00
|
|
|
sha256 = "0xq3gczqy7gzf1997qxdql5z7qqk1vabr0rzgakmsi4dq2q4d3kq";
|
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";
|
2017-08-17 23:53:40 +02:00
|
|
|
homepage = https://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;
|
|
|
|
};
|
|
|
|
}
|