nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 unstableGitUpdater, 6}: 7 8stdenv.mkDerivation { 9 pname = "bakelite"; 10 version = "0.4.2-unstable-2024-08-02"; 11 12 src = fetchFromGitHub { 13 owner = "richfelker"; 14 repo = "bakelite"; 15 rev = "bc79a16b4414702c579143154d94a86666e99b78"; 16 hash = "sha256-rRJrtCcgfbqC/4qQiTVeUUcPqoJlNfitYRqIO58AmpA="; 17 }; 18 19 preBuild = '' 20 # pipe2() is only exposed with _GNU_SOURCE 21 # Upstream makefile explicitly uses -O3 to improve SHA-3 performance 22 makeFlagsArray+=( CFLAGS="-D_GNU_SOURCE -g -O3" ) 23 ''; 24 25 installPhase = '' 26 mkdir -p $out/bin 27 cp bakelite $out/bin 28 ''; 29 30 passthru = { 31 updateScript = unstableGitUpdater { 32 tagPrefix = "v"; 33 }; 34 }; 35 36 meta = { 37 homepage = "https://github.com/richfelker/bakelite"; 38 description = "Incremental backup with strong cryptographic confidentality"; 39 mainProgram = "bakelite"; 40 license = lib.licenses.gpl2Only; 41 maintainers = with lib.maintainers; [ mvs ]; 42 # no support for Darwin (yet: https://github.com/richfelker/bakelite/pull/5) 43 platforms = lib.platforms.linux; 44 }; 45}