2015-06-29 17:03:33 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xulrunner }:
|
2013-11-30 16:27:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-12-10 19:25:32 +01:00
|
|
|
version = "2.0.15";
|
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";
|
2015-12-10 19:25:32 +01:00
|
|
|
sha256 = "be338558b613f51506337a2c7c80f209e8644656c2925f41c294e2872feabc3b";
|
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;
|
|
|
|
};
|
|
|
|
}
|