2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
callPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
fetchpatch,
|
|
|
|
}:
|
2024-07-01 15:47:52 +00:00
|
|
|
let
|
|
|
|
mkVariant =
|
2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
version,
|
|
|
|
hash,
|
|
|
|
patches ? [ ],
|
|
|
|
}:
|
2024-07-01 15:47:52 +00:00
|
|
|
callPackage ./generic.nix {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit version patches;
|
2024-07-01 15:47:52 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "libliftoff";
|
|
|
|
rev = "v${version}";
|
|
|
|
inherit hash;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2024-09-19 14:19:46 +00:00
|
|
|
libliftoff_0_4 = mkVariant {
|
|
|
|
version = "0.4.1";
|
|
|
|
hash = "sha256-NPwhsd6IOQ0XxNQQNdaaM4kmwoLftokV86WYhoa5csY=";
|
|
|
|
patches = [
|
|
|
|
# Pull gcc-14 fix:
|
|
|
|
# https://gitlab.freedesktop.org/emersion/libliftoff/-/merge_requests/78
|
|
|
|
(fetchpatch {
|
|
|
|
name = "libliftoff-gcc-14-calloc.patch";
|
|
|
|
url = "https://gitlab.freedesktop.org/emersion/libliftoff/-/commit/29a06add8ef184f85e37ff8abdc34fbaa2f4ee1e.patch";
|
|
|
|
hash = "sha256-Y8x1RK3o/I9bs/ZOLeC4t9AIK78l0QnlBWHhiVC+sz8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
libliftoff_0_5 = mkVariant {
|
|
|
|
version = "0.5.0";
|
|
|
|
hash = "sha256-PcQY8OXPqfn8C30+GAYh0Z916ba5pik8U0fVpZtFb5g=";
|
|
|
|
};
|
2021-07-03 03:11:41 +00:00
|
|
|
}
|