push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{
callPackage,
fetchFromGitLab,
fetchpatch,
}:
let
mkVariant =
{
version,
hash,
patches ? [ ],
}:
callPackage ./generic.nix {
inherit version patches;
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "emersion";
repo = "libliftoff";
rev = "v${version}";
inherit hash;
};
};
in
{
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=";
};
}

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
meson,
pkg-config,
ninja,
libdrm,
version,
src,
patches,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libliftoff";
inherit version src patches;
nativeBuildInputs = [
meson
pkg-config
ninja
];
buildInputs = [ libdrm ];
meta = {
description = "Lightweight KMS plane library";
longDescription = ''
libliftoff eases the use of KMS planes from userspace without standing in
your way. Users create "virtual planes" called layers, set KMS properties
on them, and libliftoff will pick planes for these layers if possible.
'';
inherit (finalAttrs.src.meta) homepage;
changelog = "https://gitlab.freedesktop.org/emersion/libliftoff/-/tags/v${finalAttrs.version}";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
Scrumplex
];
};
})