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