nixpkgs-suyu/pkgs/applications/graphics/scantailor/advanced.nix
R. RyanTM ec0495c032 scantailor-advanced: 1.0.12 -> 1.0.14
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/scantailor-advanced/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 1.0.14 with grep in /nix/store/idixvv43hjsy4v0xp2mfcryw55wg88c3-scantailor-advanced-1.0.14
- directory tree listing: https://gist.github.com/1f4938c03503cfde35a6b4d10d6538d1
2018-04-10 10:27:18 -07:00

49 lines
1.5 KiB
Nix

{ stdenv, fetchFromGitHub, makeDesktopItem
, cmake, libjpeg, libpng, libtiff, boost
, qtbase, qttools }:
stdenv.mkDerivation rec {
name = "scantailor-advanced-${version}";
version = "1.0.14";
src = fetchFromGitHub {
owner = "4lex4";
repo = "scantailor-advanced";
rev = "v${version}";
sha256 = "1h7lng0hxkjcvwbdf1yx59a382kiwn9bpll42acqs71nsvw65p28";
};
nativeBuildInputs = [ cmake qttools ];
buildInputs = [ libjpeg libpng libtiff boost qtbase ];
postInstall = ''
mkdir -p $out/share/icons/hicolor/scalable/apps
cp $src/resources/appicon.svg $out/share/icons/hicolor/scalable/apps/scantailor.svg
mkdir -p $out/share/applications
cp $desktopItem/share/applications/* $out/share/applications/
for entry in $out/share/applications/*.desktop; do
substituteAllInPlace $entry
done
'';
desktopItem = makeDesktopItem {
name = "scantailor-advanced";
exec = "scantailor %f";
icon = "scantailor";
comment = meta.description;
desktopName = "Scan Tailor Advanced";
genericName = "Scan Processing Software";
mimeType = "image/png;image/tif;image/jpeg;";
categories = "Graphics;";
startupNotify = "true";
};
meta = with stdenv.lib; {
homepage = https://github.com/4lex4/scantailor-advanced;
description = "Interactive post-processing tool for scanned pages";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jfrankenau ];
platforms = platforms.gnu;
};
}