mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +00:00
1e36120c94
Diff: 20230305...20230307
-1
41 lines
1017 B
Nix
41 lines
1017 B
Nix
{ lib, stdenv, clang14Stdenv, fetchFromGitHub, openssl, sqlite }:
|
|
|
|
(if stdenv.isDarwin then clang14Stdenv else stdenv).mkDerivation rec {
|
|
pname = "signalbackup-tools";
|
|
version = "20230307-1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bepaald";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-+FjjGsYMmleN+TDKFAsvC9o81gVhZHIrUgrWuzksxZU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|