mirror of
https://github.com/mx42/burrito-gw2-flake.git
synced 2026-01-14 05:39:50 +01:00
feat: make it somewhat work with buildFHSEnv
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
|
.direnv
|
||||||
result
|
result
|
||||||
|
xml_converter
|
||||||
|
|||||||
@@ -27,3 +27,9 @@ ldd ./burrito.x86_64
|
|||||||
to solve this, as I understand it, I need to use `makeWrapper` in `nativeBuildInputs`, and then provide all packages in `pkgs.lib.makeBinPath (with pkgs; [ xorg.libX11 ])`
|
to solve this, as I understand it, I need to use `makeWrapper` in `nativeBuildInputs`, and then provide all packages in `pkgs.lib.makeBinPath (with pkgs; [ xorg.libX11 ])`
|
||||||
|
|
||||||
burrito repo is now working on automated github workflows to create a CI system, so I can have a sneak peek at the build process when they will finish it, because now I can't find any clues from the repo inself. I don't know how godot projects works in this regard.
|
burrito repo is now working on automated github workflows to create a CI system, so I can have a sneak peek at the build process when they will finish it, because now I can't find any clues from the repo inself. I don't know how godot projects works in this regard.
|
||||||
|
|
||||||
|
|
||||||
|
# Additional note
|
||||||
|
|
||||||
|
Running `nix develop` (or having a direnv active) allows to run `burrito-gw2` directly, however it doesn't quite work because burrito invokes `./xml_converter`, a fix is to copy this to the current folder.
|
||||||
|
|
||||||
|
|||||||
54
flake.nix
54
flake.nix
@@ -9,42 +9,46 @@
|
|||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/AsherGlick/Burrito/releases/download/burrito-1.0.0/burrito-1.0.0.zip";
|
||||||
|
stripRoot = false;
|
||||||
|
sha256 = "10iz1w3vz1881i8h898v2ankhfhcsi439jh8b38z14jpfzbv2m6x";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
packages.${system}.default = pkgs.stdenv.mkDerivation {
|
packages.${system}.default = pkgs.buildFHSUserEnv {
|
||||||
name = "burrito-gw2";
|
name = "burrito-gw2";
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
targetPkgs = pkgs: with pkgs; [
|
||||||
|
glibc
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXinerama
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libXrender
|
||||||
|
xorg.libXi
|
||||||
|
libGL
|
||||||
|
libudev-zero
|
||||||
];
|
];
|
||||||
|
|
||||||
# will fetch github source code
|
runScript = "${src}/burrito.x86_64";
|
||||||
# src = pkgs.fetchFromGitHub {
|
|
||||||
# owner = "AsherGlick";
|
|
||||||
# repo = "Burrito";
|
|
||||||
# # to find out rev view tags on github
|
|
||||||
# # also can check yourself with
|
|
||||||
# # https://github.com/AsherGlick/Burrito/archive/refs/tags/alpha-1.4.zip
|
|
||||||
# rev = "alpha-1.4";
|
|
||||||
# # to find sha256
|
|
||||||
# # nix-prefetch-url --unpack https://github.com/AsherGlick/Burrito/archive/refs/tags/alpha-1.4.zip --type sha256
|
|
||||||
# sha256 = "164wjr7y339s67fk1b3kyz4jdx0j64qx77mkzz09wdizi7idphf3";
|
|
||||||
# };
|
|
||||||
src = pkgs.fetchzip {
|
|
||||||
url = "https://github.com/AsherGlick/Burrito/releases/download/alpha-1.4/Burrito_Linux.zip";
|
|
||||||
# because zip don't have a root directory
|
|
||||||
stripRoot=false;
|
|
||||||
# nix-prefetch-url --unpack <url> --type sha256
|
|
||||||
sha256 = "0a9f8dby8b3pn36nz0plf2kyjijlr0f6zc7vb8ym044ivrq97ss9";
|
|
||||||
};
|
|
||||||
|
|
||||||
# dummy
|
# dummy
|
||||||
# to see whats I'm getting
|
# to see whats I'm getting
|
||||||
installPhase = ''
|
#installPhase = ''
|
||||||
mkdir -p $out/bin
|
# mkdir -p $out/bin
|
||||||
cp -r $src $out/bin
|
# cp -r $src $out/bin
|
||||||
'';
|
# cp $src/burrito.x86_64 $out/bin/burrito-gw2
|
||||||
|
# chmod +x $out/bin/burrito-gw2
|
||||||
|
#'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devShell.${system} = pkgs.mkShell {
|
||||||
|
buildInputs = [
|
||||||
|
self.packages.${system}.default
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user