summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/package-management/akku/akku.nix
blob: 819235fa27cd203a3a77747527ad8a1e3abab5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  lib,
  stdenv,
  fetchurl,
  fetchFromGitLab,
  autoreconfHook,
  pkg-config,
  git,
  guile_3_0,
  curl,
  nix-update-script,
}:
let
  # Akku currently breaks starting with Guile 3.0.11.
  # So we pin Guile 3.0.10 for now.
  # https://hydra.nixos.org/build/319214800/nixlog/1/tail
  guile_3_0_10 = guile_3_0.overrideAttrs {
    src = fetchurl {
      url = "mirror://gnu/guile/guile-3.0.10.tar.xz";
      sha256 = "sha256-vXFoUX/VJjM0RtT3q4FlJ5JWNAlPvTcyLhfiuNjnY4g=";
    };
  };
in
stdenv.mkDerivation rec {
  pname = "akku";
  version = "1.1.0-unstable-2026-09-06";

  src = fetchFromGitLab {
    owner = "akkuscm";
    repo = "akku";
    rev = "8335e69c5a7ff140f164e48801ae6125ac0325b6";
    sha256 = "sha256-Vdfiv0UdQNhWGXvnYKb2r22Y8Vb0naNPNiDIINQXeME=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  # akku calls curl commands
  buildInputs = [
    guile_3_0_10
    curl
    git
  ];

  # Use a dummy package index to bootstrap Akku
  preBuild = ''
    touch bootstrap.db
  '';

  makeFlags = [ "GUILE_AUTO_COMPILE=0" ];

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--version=branch" ];
  };

  meta = {
    homepage = "https://akkuscm.org/";
    description = "Language package manager for Scheme";
    changelog = "https://gitlab.com/akkuscm/akku/-/raw/v${version}/NEWS.md";
    platforms = lib.platforms.all;
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [
      nagy
      konst-aa
    ];
    mainProgram = "akku";
  };
}