Skip to content

Instantly share code, notes, and snippets.

@PyroLagus
Created June 17, 2015 22:06
Show Gist options
  • Select an option

  • Save PyroLagus/13d09b692a679d6a46d8 to your computer and use it in GitHub Desktop.

Select an option

Save PyroLagus/13d09b692a679d6a46d8 to your computer and use it in GitHub Desktop.

Revisions

  1. PyroLagus created this gist Jun 17, 2015.
    34 changes: 34 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    { stdenv, fetchFromGitHub, cmake, pkgconfig
    , wayland, xwayland, pixman, libxkbcommon, udev, libinput, libpthreadstubs
    , libX11, libxcb, libXdmcp, x11, libxshmfence
    , mesa #nvidia_x11
    , dbus, systemd
    }:

    let srcs = {
    wlc = fetchFromGitHub {
    owner = "Cloudef";
    repo = "wlc";
    rev = "5453a91201a6b90f1f7fc093ddb578bfad18461d";
    sha256 = "1dy2i34b1bdlpf0v77ghdpimip5jdhimwqibhxa5vzxnna4ymcyw";
    };
    chck = fetchFromGitHub {
    owner = "Cloudef";
    repo = "chck";
    rev = "a11a7c064d786706269e2b9f5516d898fec10402";
    sha256 = "0db4zg9mjkci6q9x868bn86avyhpmivwjk9cyggr502ng1pasivx";
    };
    };
    in

    stdenv.mkDerivation rec {
    name = "wlc-${version}";
    version = "5453a91201";

    src = srcs.wlc;

    # postUnpack = "cp -R ${srcs.chck}/* $sourceRoot/lib/chck/src/";
    postUnpack = "ln -sv ${srcs.chck}/* $sourceRoot/lib/chck/src/";

    buildInputs = [ cmake wayland xwayland pixman libxkbcommon libxshmfence libXdmcp libpthreadstubs udev libinput libX11 libxcb dbus systemd pkgconfig ];
    }