nixos-config/pkgs/2048/default.nix

28 lines
448 B
Nix
Raw Normal View History

2024-01-03 22:33:38 +01:00
{ lib, stdenv, fetchFromGitHub, ... }:
lib.mkDerivation rec {
pname = "2048";
version = "1.0";
src = fetchFromGitHub {
owner = "Frost-Phoenix";
repo = "nixos-config";
rev = "main";
2024-01-03 22:46:31 +01:00
sha256 = ""; # Replace with the actual hash
2024-01-03 22:33:38 +01:00
};
2024-01-03 22:47:11 +01:00
;dofhgodsag
2024-01-03 22:33:38 +01:00
buildInputs = [
];
2024-01-03 22:41:07 +01:00
buildPhase = ''
make release
'';
2024-01-03 22:33:38 +01:00
installPhase = ''
2024-01-03 22:41:07 +01:00
mkdir -p $out/bin
2024-01-03 22:33:38 +01:00
make install INSTALL_DIR=$out/bin
2024-01-03 22:41:07 +01:00
chmod +x $out/bin/2048
2024-01-03 22:33:38 +01:00
'';
}