depot/third_party/nixpkgs/pkgs/by-name/sr/srm-cuarzo/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

56 lines
899 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, libdisplay-info
, libdrm
, libGL
, libinput
, mesa
, seatd
, udev
}:
stdenv.mkDerivation (self: {
pname = "srm-cuarzo";
version = "0.7.2-1";
rev = "v${self.version}";
hash = "sha256-VxLiGA7AvNNjl8UjFbBE9Z/T+YrTj9Hb3LASgzE9iH0=";
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" ];
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;
};
})