This commit is contained in:
Frost-Phoenix 2024-01-03 22:53:05 +01:00
parent 9e991c7df3
commit c78a829436

27
pkgs/_2048/default.nix Normal file
View file

@ -0,0 +1,27 @@
{ 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 = ''
mkdir -p $out/bin
make install INSTALL_DIR=$out/bin
chmod +x $out/bin/2048
'';
}