2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper,
|
2021-02-05 17:12:51 +00:00
|
|
|
atk, ffmpeg, gdk-pixbuf, gtk3, libXtst }:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "signumone-ks";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "3.1.3";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://cdn-dist.signum.one/${version}/${pname}-${version}.deb";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "00wlya3kb6qac2crflm86km9r48r29bvngjq1wgzj9w2xv0q32b9";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Necessary to avoid using multiple ffmpeg and gtk libs
|
|
|
|
autoPatchelfIgnoreMissingDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
atk gdk-pixbuf ffmpeg
|
|
|
|
gtk3 libXtst
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
libPath = lib.makeLibraryPath buildInputs;
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
dpkg-deb -x ${src} ./
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
DESKTOP_PATH=$out/share/applications/signumone-ks.desktop
|
|
|
|
|
|
|
|
mkdir -p $out/bin $out/share/applications
|
|
|
|
mv opt/SignumOne-KS/SignumOne-KS.desktop $DESKTOP_PATH
|
|
|
|
mv opt $out
|
|
|
|
|
|
|
|
substituteInPlace $DESKTOP_PATH --replace 'Exec=/opt/SignumOne-KS' Exec=$out/bin
|
|
|
|
substituteInPlace $DESKTOP_PATH --replace 'Icon=' Icon=$out
|
|
|
|
|
|
|
|
makeWrapper $out/opt/SignumOne-KS/SignumOne-KS \
|
|
|
|
$out/bin/SignumOne-KS \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${libPath}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Digital signature tool for Costa Rican electronic invoicing";
|
|
|
|
homepage = "https://signum.one/download.html";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
binaryBytecode
|
|
|
|
binaryNativeCode
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|