28 lines
437 B
Nix
28 lines
437 B
Nix
{ 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
|
|
'';
|
|
}
|