-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ engine_manager | |
.vscode | ||
*~ | ||
src/resources.c | ||
temp | ||
temp | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
description = "A nix flake for GTK-Chess, UCI chess engine GUI written in C."; | ||
nixConfig = { | ||
extra-experimental-features = [ "nix-command" "flakes" ]; | ||
extra-substituters = [ "https://cache.zw3rk.com" ]; | ||
extra-trusted-public-keys = [ "loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=" ]; | ||
|
||
bash-prompt = "\\[\\e[0m\\][\\[\\e[0;2m\\]nix-develop \\[\\e[0;1m\\]gtk-chess@\\[\\033[33m\\]$(git rev-parse --abbrev-ref HEAD) \\[\\e[0;32m\\]\\w\\[\\e[0m\\]]\\[\\e[0m\\]$ \\[\\e[0m\\]"; | ||
}; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=22.11"; | ||
}; | ||
|
||
outputs = { self, nixpkgs }: { | ||
defaultPackage.x86_64-linux = self.packages.gtkChess; | ||
|
||
packages.gtkChess = | ||
with import nixpkgs { system = "x86_64-linux"; }; | ||
stdenv.mkDerivation { | ||
name = "GTK-Chess"; | ||
version = "dev"; | ||
src = ./.; | ||
nativeBuildInputs = [ clang gnumake pkg-config which libxml2 ]; | ||
buildInputs = [ gtk3 librsvg glib ]; | ||
buildPhase = "make all"; | ||
installPhase = "mkdir -p $out/bin; cp GTKChess $out/bin"; | ||
}; | ||
}; | ||
} |