nixpkgs/pkgs/by-name/ba/bakelite/package.nix

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

40 lines
1012 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
}:
2021-11-28 14:24:52 +00:00
stdenv.mkDerivation rec {
pname = "bakelite";
version = "unstable-2023-03-30";
2021-11-28 14:24:52 +00:00
src = fetchFromGitHub {
owner = "richfelker";
repo = pname;
rev = "65d69e88e0972d1493ebbd9bf9d1bfde36272636";
hash = "sha256-OjBw9aYD2h7BWYgQzZp03hGCyQcRgmm2AjrcT/QrQAo=";
2021-11-28 14:24:52 +00:00
};
hardeningEnable = [ "pie" ];
preBuild = ''
# pipe2() is only exposed with _GNU_SOURCE
# Upstream makefile explicitly uses -O3 to improve SHA-3 performance
makeFlagsArray+=( CFLAGS="-D_GNU_SOURCE -g -O3" )
'';
2021-11-28 14:24:52 +00:00
installPhase = ''
mkdir -p $out/bin
cp bakelite $out/bin
'';
meta = with lib; {
homepage = "https://github.com/richfelker/bakelite";
description = "Incremental backup with strong cryptographic confidentality";
mainProgram = "bakelite";
2024-04-26 12:35:31 +01:00
license = licenses.gpl2Only;
2021-11-28 14:24:52 +00:00
maintainers = with maintainers; [ mvs ];
2022-05-19 20:35:58 +01:00
# no support for Darwin (yet: https://github.com/richfelker/bakelite/pull/5)
platforms = platforms.linux;
2021-11-28 14:24:52 +00:00
};
}