summaryrefslogtreecommitdiff
path: root/pkgs/overlay.nix
blob: 0f38c5fbc288a06daf05fcea2b3b70f4532a8913 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{ inputs, ... }:
self: super:

let
  unstable = inputs.nixpkgs-unstable.legacyPackages.${self.system};
  oldstable = inputs.nixpkgs-oldstable.legacyPackages.${self.system};
  crs-tools = self.callPackage ./crs-tools.nix {};
in
{
  galmon-core = self.callPackage (import ./galmon.nix {}) {};
  galmon-full = self.callPackage (import ./galmon.nix { buildAll = true; }) {};

  glitchtip = (self.callPackage ./glitchtip.nix {
    python = super.python310.override ({
      packageOverrides = self: super: {
        django = super.django_4;
      };
    });
  });

  typst = self.callPackage ./typst.nix {
    rust-bin =
      self.rust-bin;
  };

  almanac = self.rustPlatform.buildRustPackage rec {
    pname = "almanac";
    version = "git";
    src = inputs.almanac.outPath;
    cargoLock.lockFile = "${src}/Cargo.lock";
  };

  kijetesantakaluotokieni = self.rustPlatform.buildRustPackage rec {
    pname = "kijetesantakaluotokieni";
    version = "git";
    src = self.fetchgit {
      url = "https://git.2ki.xyz/spiders/kijetesantakaluotokieni";
      rev = "7d9ea828f42ffd9fb6826ea4cbf7677b08222064";
      sha256 = "sha256-PEp+K5mRNUR6yWLrpGpiX8qvaPQIibA17NQwXUiC2lk=";
    };
    cargoLock.lockFile = "${src}/Cargo.lock";
  };

  showrt = self.rustPlatform.buildRustPackage rec {
    pname = "showrt";
    version = "git";
    src = inputs.showrt;
    nativeBuildInputs = [ self.protobuf ];
    cargoLock.lockFile = "${src}/Cargo.lock";
  };

  isabelle-utils = self.rustPlatform.buildRustPackage rec {
    pname = "isabelle-utils";
    version = "git";
    src = inputs.isabelle-utils;
    cargoLock.lockFile = "${src}/Cargo.lock";
    checkPhase = "
      echo skipping tests
    ";
  };

  isabat = import "${inputs.isabelle-utils}/isabat.nix" {
    pkgs = self;
    isabelle-rust-utils = self.isabelle-utils;
  };

  emacs29 = self.callPackage
    (import "${inputs.nixpkgs.outPath}/pkgs/applications/editors/emacs/generic.nix" {
      version = "29";
      sha256 = "sha256-52ww8DBlDu1frfmLMTnsCmQld6OVX7qBNqVXjuY3GA8=";
    }) {
      inherit (self.darwin.apple_sdk.frameworks) AppKit Carbon Cocoa IOKit OSAKit Quartz
        QuartzCore WebKit ImageCaptureCore GSS ImageIO;
      gconf = null;
      alsa-lib = null;
      gpm = null;
      libXaw = self.xorg.libXaw;
      inherit (self.darwin) sigtool;
      withPgtk = true;
      withX = false;
    };

  crs-tracker = crs-tools.tracker;
  crs-php = crs-tools.php;

  travelynx = self.callPackage ./travelynx.nix {};

  beamPackages = super.beam.packagesWith self.erlang;
  elixir = self.beamPackages.elixir_1_14;
  erlang = super.erlang_nox;

  bahnhof-name = let
    inherit (self.callPackage "${inputs.nix-gleam.outPath}/builder/default.nix" {}) buildGleamApplication;
  in buildGleamApplication {
    version = "0.1";
    pname = "bahnhof.name";
    src = inputs.bahnhof-name;
  };


  # dbus = super.dbus.override { x11Support = false; };
  mu = oldstable.mu;
}