31 lines
810 B
Nix
31 lines
810 B
Nix
{
|
|
description = "glonkers glonkers glonkers";
|
|
inputs = {
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
};
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
defaultPackage = pkgs.stdenv.mkDerivation rec {
|
|
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
|
|
name = "glonkers";
|
|
src = ./.;
|
|
buildInputs = with pkgs; [
|
|
pkg-config
|
|
libGL
|
|
wayland
|
|
wayland-protocols
|
|
wayland-scanner
|
|
];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp glonkers $out/bin
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|