test
This commit is contained in:
parent
69d8c64451
commit
f76f19102c
27
pkgs/2048/default.nix
Normal file
27
pkgs/2048/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ stdenv, lib, stdenv, fetchFromGitHub, ... }:
|
||||||
|
|
||||||
|
stdenv.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
|
||||||
|
'';
|
||||||
|
}
|
|
@ -1,27 +0,0 @@
|
||||||
# { stdenv, lib, stdenv, fetchFromGitHub, ... }:
|
|
||||||
|
|
||||||
# stdenv.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
|
|
||||||
# # '';
|
|
||||||
# }
|
|
Loading…
Reference in a new issue