nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 sfml_2,
7}:
8
9stdenv.mkDerivation {
10 pname = "simplenes";
11 version = "0-unstable-2025-01-05";
12
13 src = fetchFromGitHub {
14 owner = "amhndu";
15 repo = "SimpleNES";
16 rev = "154a2fd4f2f2611a27197aa8d802bbcdfd1a0ea3";
17 hash = "sha256-4Nb42tb/pJaVOOhj7hH9cQLDKCz8GUXWz8KAHPOd9nE=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21 buildInputs = [ sfml_2 ];
22
23 installPhase = ''
24 runHook preInstall
25
26 mkdir -p $out/bin
27 cp ./SimpleNES $out/bin
28
29 runHook postInstall
30 '';
31
32 meta = {
33 homepage = "https://github.com/amhndu/SimpleNES";
34 description = "NES emulator written in C++";
35 license = lib.licenses.gpl3;
36 maintainers = with lib.maintainers; [ guylamar2006 ];
37 platforms = lib.platforms.linux;
38 mainProgram = "SimpleNES";
39 };
40}