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