nixpkgs/pkgs/applications/networking/instant-messengers/signalbackup-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
957 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, openssl, sqlite }:
2021-12-14 19:44:49 +00:00
stdenv.mkDerivation rec {
pname = "signalbackup-tools";
version = "20221208";
2021-12-14 19:44:49 +00:00
src = fetchFromGitHub {
owner = "bepaald";
repo = pname;
rev = version;
sha256 = "sha256-GSZy2zW9Ek9nP9zoBfvq3wLghEsaGqmC1f4cs+OVaFE=";
2021-12-14 19:44:49 +00:00
};
postPatch = ''
patchShebangs BUILDSCRIPT_MULTIPROC.bash44
'';
buildInputs = [ openssl sqlite ];
2021-12-14 19:44:49 +00:00
buildPhase = ''
runHook preBuild
./BUILDSCRIPT_MULTIPROC.bash44${lib.optionalString stdenv.isDarwin " --config nixpkgs-darwin"}
runHook postBuild
2021-12-14 19:44:49 +00:00
'';
installPhase = ''
runHook preInstall
2021-12-14 19:44:49 +00:00
mkdir -p $out/bin
cp signalbackup-tools $out/bin/
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;
};
}