2015-06-29 17:03:33 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xulrunner }:
|
2013-11-30 16:27:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-10-15 17:40:37 +02:00
|
|
|
version = "2.0.14";
|
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-10-15 17:40:37 +02:00
|
|
|
sha256 = "59f46db863e6d95ee6987e600d658ad4b58b03b0744c5c6d17ce04f5ae92d260";
|
2015-05-29 10:41:30 +02:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|