Skip to content

Instantly share code, notes, and snippets.

@betawaffle
Created May 17, 2020 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betawaffle/67e75e5163f201933b58761d6c25072e to your computer and use it in GitHub Desktop.
Save betawaffle/67e75e5163f201933b58761d6c25072e to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {}
, ...
}:
with pkgs;
stdenv.mkDerivation {
name = "wl-test";
# nativeBuildInputs = [ pkgconfig ];
buildInputs = [
wayland
];
src = ./.;
# phases = [ "buildPhase" ];
buildPhase = ''
cc $src/main.c -o $out -lwayland
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment