{ 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 ]); }; } ); }