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