diff options
| author | spl3g <speefer6@yandex.ru> | 2025-09-17 18:48:52 +0300 |
|---|---|---|
| committer | spl3g <speefer6@yandex.ru> | 2025-09-17 18:48:52 +0300 |
| commit | 82deb25f4988c084a01d5bb533cfee0a8eec7672 (patch) | |
| tree | ecf4c289d41316aadab051662ae9ea54d3da4b3a | |
| parent | f27f8eec3a1036c310140da86d4bc2c580f02343 (diff) | |
Add a flake package
| -rw-r--r-- | flake.nix | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -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 + ''; + }; + }); }; } |
