nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 callPackage,
3 fetchFromGitLab,
4 fetchpatch,
5}:
6let
7 mkVariant =
8 {
9 version,
10 hash,
11 patches ? [ ],
12 }:
13 callPackage ./generic.nix {
14 inherit version patches;
15 src = fetchFromGitLab {
16 domain = "gitlab.freedesktop.org";
17 owner = "emersion";
18 repo = "libliftoff";
19 rev = "v${version}";
20 inherit hash;
21 };
22 };
23in
24{
25 libliftoff_0_4 = mkVariant {
26 version = "0.4.1";
27 hash = "sha256-NPwhsd6IOQ0XxNQQNdaaM4kmwoLftokV86WYhoa5csY=";
28 patches = [
29 # Pull gcc-14 fix:
30 # https://gitlab.freedesktop.org/emersion/libliftoff/-/merge_requests/78
31 (fetchpatch {
32 name = "libliftoff-gcc-14-calloc.patch";
33 url = "https://gitlab.freedesktop.org/emersion/libliftoff/-/commit/29a06add8ef184f85e37ff8abdc34fbaa2f4ee1e.patch";
34 hash = "sha256-Y8x1RK3o/I9bs/ZOLeC4t9AIK78l0QnlBWHhiVC+sz8=";
35 })
36 ];
37 };
38 libliftoff_0_5 = mkVariant {
39 version = "0.5.0";
40 hash = "sha256-PcQY8OXPqfn8C30+GAYh0Z916ba5pik8U0fVpZtFb5g=";
41 };
42}