Fleks
This commit is contained in:
parent
3eb0117e18
commit
76a4154e6a
File diff suppressed because it is too large
Load Diff
|
@ -8,4 +8,4 @@ edition = "2021"
|
|||
[dependencies]
|
||||
bevy = "0.7"
|
||||
#bevy_clicking = { path = "../clicking" }
|
||||
bevy_clicking = { git = "https://github.com/matelab/bevy_clicking" }
|
||||
bevy_clicking = { git = "https://github.com/matelab/bevy_clicking", branch = "main" }
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1637014545,
|
||||
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"naersk": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1650265945,
|
||||
"narHash": "sha256-SO8+1db4jTOjnwP++29vVgImLIfETSXyoz0FuLkiikE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "naersk",
|
||||
"rev": "e8f9f8d037774becd82fce2781e1abdb7836d7df",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "naersk",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1650194139,
|
||||
"narHash": "sha256-kurZsqeOw5fpqA/Ig+8tHvbjwzs5P9AE6WUKOX1m6qM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "bd4dffcdb7c577d74745bd1eff6230172bd176d5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1650403848,
|
||||
"narHash": "sha256-4M6hI3Zpj5n7dBBgeDthAtqJDCAeH7W1AnhmFUlpTR4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "565de2adf1e1d9b08357a42cec2997893378a5b5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1637453606,
|
||||
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"naersk": "naersk",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"rust-overlay": "rust-overlay"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1650336226,
|
||||
"narHash": "sha256-A68t/BM3JPXUDFx9JGBk24euXvsaIZuPL28+hX5TmwA=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "8cd3024e5b011218308eeee35c4839601af458f8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
naersk.url = "github:nix-community/naersk";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
};
|
||||
|
||||
outputs = { self, naersk, nixpkgs, rust-overlay }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs {
|
||||
inherit overlays system;
|
||||
};
|
||||
rust-bin = pkgs.rust-bin.rust-nightly;
|
||||
naersk-lib = naersk.lib.${system};#.override {
|
||||
#cargo = rust-bin;
|
||||
#rust = rust-bin;
|
||||
# };
|
||||
build-deps = with pkgs; [
|
||||
lld
|
||||
clang
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
runtime-deps = with pkgs; [
|
||||
alsa-lib
|
||||
udev
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
xorg.libxcb
|
||||
libGL
|
||||
vulkan-loader
|
||||
vulkan-headers
|
||||
];
|
||||
in
|
||||
{
|
||||
packages.${system}.bevy_mandelbrot = naersk-lib.buildPackage {
|
||||
pname = "bevy_mandelbrot";
|
||||
root = ./.;
|
||||
buildInputs = runtime-deps;
|
||||
nativeBuildInputs = build-deps;
|
||||
overrideMain = attrs: {
|
||||
fixupPhase = ''
|
||||
wrapProgram $out/bin/bevy_mandelbrot \
|
||||
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtime-deps} \
|
||||
--set CARGO_MANIFEST_DIR $out/share/bevy_mandelbrot
|
||||
mkdir -p $out/share/bevy_mandelbrot
|
||||
cp -a assets $out/share/bevy_mandelbrot'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue