2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper,
|
2021-02-03 10:42:17 +00:00
|
|
|
atk, ffmpeg, gdk-pixbuf, gtk3, libXtst }:
|
2021-01-02 12:46:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "signumone-ks";
|
2021-01-20 01:54:59 +00:00
|
|
|
version = "3.1.3";
|
2021-01-02 12:46:28 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://cdn-dist.signum.one/${version}/${pname}-${version}.deb";
|
2021-01-20 01:54:59 +00:00
|
|
|
sha256 = "00wlya3kb6qac2crflm86km9r48r29bvngjq1wgzj9w2xv0q32b9";
|
2021-01-02 12:46:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Necessary to avoid using multiple ffmpeg and gtk libs
|
|
|
|
autoPatchelfIgnoreMissingDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-02-03 10:42:17 +00:00
|
|
|
atk gdk-pixbuf ffmpeg
|
|
|
|
gtk3 libXtst
|
2021-01-02 12:46:28 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
libPath = lib.makeLibraryPath buildInputs;
|
2021-01-02 12:46:28 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
meta = with lib; {
|
2021-01-02 12:46:28 +00:00
|
|
|
description = "Digital signature tool for Costa Rican electronic invoicing";
|
|
|
|
homepage = "https://signum.one/download.html";
|
2022-06-04 23:19:25 +01:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
binaryBytecode
|
|
|
|
binaryNativeCode
|
|
|
|
];
|
2021-01-02 12:46:28 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|