mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
srm-cuarzo: init at 0.4.0-1
This commit is contained in:
parent
236bdb034a
commit
e93fba74a2
62
pkgs/by-name/sr/srm-cuarzo/package.nix
Normal file
62
pkgs/by-name/sr/srm-cuarzo/package.nix
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, libdisplay-info
|
||||||
|
, libdrm
|
||||||
|
, libGL
|
||||||
|
, libinput
|
||||||
|
, mesa
|
||||||
|
, seatd
|
||||||
|
, udev
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (self: {
|
||||||
|
pname = "srm-cuarzo";
|
||||||
|
version = "0.4.0-1";
|
||||||
|
rev = "v${self.version}";
|
||||||
|
hash = "sha256-PWtDSBYw62sfyN2lpd7NY8SbqDrt5IN1rdLZRtDfals=";
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue