nixpkgs-suyu/pkgs/applications/graphics/pencil/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, xulrunner }:
stdenv.mkDerivation rec {
2015-10-15 17:40:37 +02:00
version = "2.0.14";
name = "pencil-${version}";
src = fetchurl {
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
};
buildPhase = "";
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p "$out"
cp -r usr/* "$out"
sed -e "s|/usr/share/evolus-pencil|$out/share/evolus-pencil|" \
-i "$out/bin/pencil"
sed -e "s|/usr/bin/pencil|$out/bin/pencil|" \
-e "s|Icon=.*|Icon=$out/share/evolus-pencil/skin/classic/icon.svg|" \
-i "$out/share/applications/pencil.desktop"
wrapProgram $out/bin/pencil \
--prefix PATH ":" ${xulrunner}/bin
'';
meta = with stdenv.lib; {
description = "GUI prototyping/mockup tool";
homepage = http://github.com/prikhi/pencil;
license = licenses.gpl2; # Commercial license is also available
maintainers = with maintainers; [ bjornfor prikhi ];
platforms = platforms.linux;
};
}