experimenting on valentina
parent
d5af1e9d39
commit
0f8c906fc6
|
@ -7,6 +7,7 @@
|
|||
, qtsvg
|
||||
, qtxmlpatterns
|
||||
, poppler_utils
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
@ -15,16 +16,10 @@ mkDerivation rec {
|
|||
pname = "valentina";
|
||||
version = "0.6.1";
|
||||
|
||||
#src = fetchhg {
|
||||
# url = "https://bitbucket.org/dismine/valentina";
|
||||
# rev = "v${version}";
|
||||
# sha256 = "0dxk2av7xbsd233sr9wa1hamzb7pp8yx6p5b43rsnvnzchkqf423";
|
||||
#};
|
||||
src = fetchFromGitLab {
|
||||
owner = "smart-pattern";
|
||||
repo = "valentina";
|
||||
rev = "v${version}";
|
||||
#sha256 = "sha256-N9fC2tCP4TVNncatHaz5W5Mp3jOmAcEWYCl30+0myaE=";
|
||||
sha256 = "0dxk2av7xbsd233sr9wa1hamzb7pp8yx6p5b43rsnvnzchkqf423";
|
||||
};
|
||||
|
||||
|
@ -44,19 +39,37 @@ mkDerivation rec {
|
|||
--replace 'define PDFTOPS "pdftops"' 'define PDFTOPS "${getBin poppler_utils}/bin/pdftops"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ qmake qttools ];
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [ qtbase qtsvg qtxmlpatterns poppler_utils ];
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
qtxmlpatterns
|
||||
poppler_utils
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
qmake PREFIX=/ Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
||||
'';
|
||||
qmakeFlags = [
|
||||
"-r"
|
||||
"PREFIX=/"
|
||||
#"PREFIX_LIB=/share"
|
||||
"Valentina.pro"
|
||||
"CONFIG+=noDebugSymbols"
|
||||
"CONFIG+=noRunPath"
|
||||
"CONFIG+=noTests"
|
||||
"CONFIG+=no_ccache"
|
||||
];
|
||||
|
||||
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/usr/share $out/
|
||||
rmdir $out/usr
|
||||
|
||||
#rmdir $out/usr
|
||||
ln -s $out/share $out/usr/share
|
||||
|
||||
mkdir -p $out/share/man/man1
|
||||
gzip -9c dist/debian/valentina.1 > $out/share/man/man1/valentina.1.gz
|
||||
|
|
Loading…
Reference in New Issue