Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ bookmarks.txt
.\#*
.DS_Store
*.kate-swp
result
64 changes: 64 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixgl.url = "github:nix-community/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {self, nixpkgs, nixgl}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
config = { allowUnfree = true; };
};
in
{
packages.${system} = {
tangerine = pkgs.stdenv.mkDerivation {
name = "tangerine";
patches = [
(pkgs.fetchpatch {
url = "https://github.com/Aeva/tangerine/pull/12/commits/2d7d1ae1e21e8fe52df2c4a33e947b2ff6b07812.patch";

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be your other pull request, correct?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct - once it's merged / updated, the list here can be updated.

hash = "sha256-zLAx5FOvtUsUZM/nUCFW8Z1Xe3+oV95Nv1s3GaNcV/c=";
})
];
nativeBuildInputs = [ pkgs.cmake ];
buildInputs = with pkgs; [ SDL2 ncurses ];
src = ./.;
inherit system;
};
default = pkgs.writeScriptBin "tangerine"
''
${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ${self.packages.${system}.tangerine}/bin/tangerine
'';
};
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [ cmake SDL2 ncurses pkgs.nixgl.nixGLIntel ];
shellHook = ''
export LD_LIBRARY_PATH=$(nixGLIntel printenv LD_LIBRARY_PATH):$LD_LIBRARY_PATH
'';
};
};
}