depot/pkgs/by-name/si/signalbackup-tools/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

59 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
apple-sdk_11,
darwinMinVersionHook,
dbus,
openssl,
sqlite,
}:
stdenv.mkDerivation rec {
pname = "signalbackup-tools";
version = "20241106-1";
src = fetchFromGitHub {
owner = "bepaald";
repo = "signalbackup-tools";
rev = version;
hash = "sha256-klIkNt3AlT/msZl7pYPQaFMl/pdI7rcaeLDZekmTIzY=";
};
nativeBuildInputs = [
cmake
] ++ lib.optionals stdenv.hostPlatform.isLinux [
pkg-config
];
buildInputs = [
openssl
sqlite
] ++ lib.optionals stdenv.hostPlatform.isLinux [
dbus
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# Needed for `utimensat` on `x86_64-darwin`
apple-sdk_11
(darwinMinVersionHook "11.3")
];
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";
mainProgram = "signalbackup-tools";
homepage = "https://github.com/bepaald/signalbackup-tools";
license = licenses.gpl3Only;
maintainers = [ maintainers.malo ];
platforms = platforms.all;
};
}