2017-12-21 17:16:19 +01:00
|
|
|
{ lib, stdenv, fetchgit, cmake, pkgconfig, makeWrapper, callPackage
|
2018-07-17 22:11:16 +02:00
|
|
|
, wlc, dbus, wayland, libxkbcommon, pixman, libinput, udev, zlib, libpng
|
2016-08-29 15:06:31 +02:00
|
|
|
, libdrm, libX11
|
2017-12-21 17:16:19 +01:00
|
|
|
, westonLite
|
2015-10-24 01:32:20 +02:00
|
|
|
}:
|
|
|
|
|
2017-12-21 17:16:19 +01:00
|
|
|
let
|
|
|
|
bemenu = callPackage ./bemenu.nix {};
|
|
|
|
in stdenv.mkDerivation rec {
|
2015-10-24 01:32:20 +02:00
|
|
|
name = "orbment-${version}";
|
2016-08-29 15:06:31 +02:00
|
|
|
version = "git-2016-08-13";
|
2015-10-24 01:32:20 +02:00
|
|
|
|
2016-08-29 15:06:31 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Cloudef/orbment";
|
|
|
|
rev = "01dcfff9719e20261a6d8c761c0cc2f8fa0d0de5";
|
|
|
|
sha256 = "04mv9nh847vijr01zrs47fzmnwfhdx09vi3ddv843mx10yx7lqdb";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2015-10-24 01:32:20 +02:00
|
|
|
|
2017-12-21 17:16:19 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
2015-10-24 01:32:20 +02:00
|
|
|
|
2016-08-29 15:06:31 +02:00
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
wlc dbus wayland libxkbcommon pixman libinput udev zlib libpng libX11
|
2016-08-29 15:06:31 +02:00
|
|
|
libdrm
|
|
|
|
];
|
2015-10-24 01:32:20 +02:00
|
|
|
|
2017-12-21 17:16:19 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/orbment \
|
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ bemenu westonLite ]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-24 01:32:20 +02:00
|
|
|
meta = {
|
|
|
|
description = "Modular Wayland compositor";
|
2016-08-29 15:06:31 +02:00
|
|
|
homepage = src.url;
|
2015-10-24 01:32:20 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|