Skip to content

Instantly share code, notes, and snippets.

@ramirez7
Last active November 3, 2022 21:24
Show Gist options
  • Select an option

  • Save ramirez7/6f454dc19ef6bfb8f0e60b90aab955e3 to your computer and use it in GitHub Desktop.

Select an option

Save ramirez7/6f454dc19ef6bfb8f0e60b90aab955e3 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let src = fetchgit {
url = "https://github.com/binji/smolnes";
rev = "9126b8c9aa32e58814627281bbab2ba06a159514";
sha256 = "03ifah66y42gw4h3bqh7mhykbbkn5s9byi48amq3qxiqpz260mdy";
};
in stdenv.mkDerivation {
name = "smolnes";
version = "2022-11-02";
inherit src;
buildInputs = [ SDL2 ];
installPhase = ''
mkdir $out
cp ./smolnes $out/
'';
}
@ramirez7
Copy link
Author

ramirez7 commented Nov 3, 2022

$ nix-build smolnes.nix
$ ./result/smolnes PATH_TO_ROM

^ This worked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment