2022-08-25 17:07:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, sqlite }:
|
2021-12-14 19:44:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "signalbackup-tools";
|
2022-12-07 23:24:20 +00:00
|
|
|
version = "20221208";
|
2021-12-14 19:44:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bepaald";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-07 23:24:20 +00:00
|
|
|
sha256 = "sha256-GSZy2zW9Ek9nP9zoBfvq3wLghEsaGqmC1f4cs+OVaFE=";
|
2021-12-14 19:44:49 +00:00
|
|
|
};
|
|
|
|
|
2022-08-16 09:37:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs BUILDSCRIPT_MULTIPROC.bash44
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ openssl sqlite ];
|
|
|
|
|
2021-12-14 19:44:49 +00:00
|
|
|
buildPhase = ''
|
2022-08-16 09:37:45 +00:00
|
|
|
runHook preBuild
|
2022-11-22 21:43:34 +00:00
|
|
|
./BUILDSCRIPT_MULTIPROC.bash44${lib.optionalString stdenv.isDarwin " --config nixpkgs-darwin"}
|
2022-08-16 09:37:45 +00:00
|
|
|
runHook postBuild
|
2021-12-14 19:44:49 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-08-16 09:37:45 +00:00
|
|
|
runHook preInstall
|
2021-12-14 19:44:49 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp signalbackup-tools $out/bin/
|
2022-08-16 09:37:45 +00:00
|
|
|
runHook postInstall
|
2021-12-14 19:44:49 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to work with Signal Backup files";
|
|
|
|
homepage = "https://github.com/bepaald/signalbackup-tools";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.malo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|