Skip to content

Instantly share code, notes, and snippets.

View sioodmy's full-sized avatar
🦀
rust on top

sioodmy sioodmy

🦀
rust on top
View GitHub Profile
@sioodmy
sioodmy / README.md
Created November 2, 2022 19:53
Hyprland on NixOS with nvidia driver - screenshare worky edition
@sioodmy
sioodmy / shell.nix
Created March 11, 2022 18:11
Rust crow nix-shell example
{ pkgs ? import <nixpkgs> {} }:
with pkgs; mkShell {
nativeBuildInputs = [
pkgconfig
clang lld # To use lld linker
];
buildInputs = [
udev alsaLib vulkan-loader libGL egl-wayland
x11 xorg.libXcursor xorg.libXrandr xorg.libXi # To use x11 feature
libxkbcommon wayland # To use wayland feature
@sioodmy
sioodmy / main.cpp
Created March 7, 2022 18:31
Nix shell C++ SDL2 example
// SDL2 Hello, World!
// This should display a white screen for 2 seconds
// compile with: clang++ main.cpp -o hello_sdl2 -lSDL2
// run with: ./hello_sdl2
#include <SDL2/SDL.h>
#include <stdio.h>
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480