add my own game to exported pkgs

This commit is contained in:
Frost-Phoenix 2024-01-03 22:33:38 +01:00
parent 263cf8436e
commit c8b92d77a8

25
pkgs/2048/default.nix Normal file
View file

@ -0,0 +1,25 @@
{ lib, stdenv, fetchFromGitHub, ... }:
lib.mkDerivation rec {
pname = "2048";
version = "1.0";
src = fetchFromGitHub {
owner = "Frost-Phoenix";
repo = "nixos-config";
rev = "main";
sha256 = "..."; # Replace with the actual hash
};
buildInputs = [
];
# buildPhase = ''
# make release
# '';
installPhase = ''
make install INSTALL_DIR=$out/bin
'';
}