glonkers/flake.nix
2026-01-03 17:20:17 +01:00

41 lines
1.1 KiB
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
];
installPhase = ''
mkdir -p $out/bin
cp glonkers $out/bin
'';
};
devShell = pkgs.mkShell {
packages =
defaultPackage.nativeBuildInputs ++
defaultPackage.buildInputs ++
(with pkgs; [
renderdoc
]);
};
}
);
}