nixos-config/pkgs/_2048/default.nix

28 lines
456 B
Nix
Raw Normal View History

2024-01-03 23:11:07 +01:00
{ stdenv, lib, stasdasdfdenv, fetchFromGitHub, ... }:
2024-01-03 22:33:38 +01:00
2024-01-03 23:11:07 +01:00
stdenv.mkDerivation rec {
2024-01-03 22:53:05 +01:00
pname = "_2048";
2024-01-03 22:33:38 +01:00
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:51:27 +01:00
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
'';
}