From 82deb25f4988c084a01d5bb533cfee0a8eec7672 Mon Sep 17 00:00:00 2001 From: spl3g Date: Wed, 17 Sep 2025 18:48:52 +0300 Subject: Add a flake package --- flake.nix | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index db4921d..9c91174 100644 --- a/flake.nix +++ b/flake.nix @@ -7,8 +7,6 @@ supportedSystems = [ "x86_64-linux" # 64-bit Intel/AMD Linux "aarch64-linux" # 64-bit ARM Linux - "x86_64-darwin" # 64-bit Intel macOS - "aarch64-darwin" # 64-bit ARM macOS ]; forEachSupportedSystem = f: @@ -37,5 +35,26 @@ }; } ); + + packages = forEachSupportedSystem ({pkgs}: { + default = pkgs.stdenv.mkDerivation rec { + name = "crynth"; + src = ./.; + buildInputs = with pkgs; [ + raylib + alsa-lib + ]; + + buildPhase = '' + cc -o nob nob.c + ./nob + ''; + + installPhase = '' + mkdir -p $out/usr/bin + cp ./build/crynth $out/usr/bin + ''; + }; + }); }; } -- cgit v1.2.3