nixpkgs/pkgs/by-name/sr/srm-cuarzo/package.nix
2024-04-14 02:31:53 +00:00

63 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, libdisplay-info
, libdrm
, libGL
, libinput
, mesa
, seatd
, udev
}:
stdenv.mkDerivation (self: {
pname = "srm-cuarzo";
version = "0.5.6-1";
rev = "v${self.version}";
hash = "sha256-REILtx4tPAWX4JnBjC0EU5dnnZhbVHhlVAWKo7n7sdA=";
src = fetchFromGitHub {
inherit (self) rev hash;
owner = "CuarzoSoftware";
repo = "SRM";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
libdisplay-info
libdrm
libGL
libinput
mesa
seatd
udev
];
outputs = [ "out" "dev" ];
postPatch = ''
substituteInPlace src/meson.build \
--replace "/usr/include/drm" "${libdrm.dev}/include/drm" \
--replace "/usr/include/libdrm" "${libdrm.dev}/include/libdrm"
'';
preConfigure = ''
# The root meson.build file is in src/
cd src
'';
meta = {
description = "Simple Rendering Manager";
homepage = "https://github.com/CuarzoSoftware/SRM";
maintainers = [ lib.maintainers.dblsaiko ];
platforms = lib.platforms.linux;
};
})