mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
41 lines
957 B
Nix
41 lines
957 B
Nix
{ lib, stdenv, fetchFromGitHub, openssl, sqlite }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "signalbackup-tools";
|
|
version = "20221208";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bepaald";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-GSZy2zW9Ek9nP9zoBfvq3wLghEsaGqmC1f4cs+OVaFE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs BUILDSCRIPT_MULTIPROC.bash44
|
|
'';
|
|
|
|
buildInputs = [ openssl sqlite ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
./BUILDSCRIPT_MULTIPROC.bash44${lib.optionalString stdenv.isDarwin " --config nixpkgs-darwin"}
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp signalbackup-tools $out/bin/
|
|
runHook postInstall
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|