glonkers/flake.nix
2025-12-08 03:57:28 +01:00

31 lines
747 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 {
name = "glonkers";
src = ./.;
naitiveBuildInputs = with pkgs; [
gcc
];
buildInputs = with pkgs; [
pkg-config
sdl3
libGL
];
installPhase = ''
mkdir -p $out/bin
cp glonkers $out/bin
'';
};
}
);
}