glonkers/flake.nix
2026-03-12 14:03:37 +01:00

35 lines
962 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
rec {
defaultPackage = pkgs.stdenv.mkDerivation rec {
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
name = "glonkers";
src = ./.;
nativeBuildInputs = with pkgs; [
pkg-config
wayland-scanner
wayland-protocols
wayland
];
buildInputs = with pkgs; [
libGL
];
makeFlags = [ "PREFIX=$(out)" ];
};
devShell = pkgs.mkShell {
packages =
defaultPackage.nativeBuildInputs ++
defaultPackage.buildInputs;
};
}
);
}