Unverified Commit c45d500b authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

plakar: fix build by using buildGo125Module; install manpages (#510533)

parents f9f78793 dd3b6493
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  buildGoModule,
  buildGo125Module,
  fetchFromGitHub,
  installShellFiles,
  fuse,
}:
buildGoModule (finalAttrs: {
buildGo125Module (finalAttrs: {
  pname = "plakar";
  version = "1.0.6";

@@ -22,6 +23,10 @@ buildGoModule (finalAttrs: {
    fuse
  ];

  nativeBuildInputs = [
    installShellFiles
  ];

  checkFlags =
    let
      skippedTests = [
@@ -31,10 +36,15 @@ buildGoModule (finalAttrs: {
      ++ lib.optionals stdenv.isDarwin [
        "TestBTreeScanMemory"
        "TestBTreeScanPebble"
        "TestExecuteCmdServerDefault"
      ];
    in
    [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];

  postInstall = ''
    installManPage $(find $src -regex '.*\.[0-9]$')
  '';

  meta = {
    mainProgram = "plakar";
    description = "Encrypted, queryable backups for engineers based on an immutable data store and portable archives";