Skip to content

Commit fe681de

Browse files
committed
🔨 chore(shell.nix): yippie
Signed-off-by: xtrm <oss@xtrm.me>
1 parent 1aa4c10 commit fe681de

5 files changed

Lines changed: 90 additions & 0 deletions

File tree

‎.envrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.xmake/
2+
.direnv/
23
.vs/
34
.cache/
45
build/

‎flake.lock‎

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flake.nix‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
description = "very mauvais engine";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6+
systems.url = "github:nix-systems/x86_64-linux";
7+
};
8+
9+
outputs =
10+
{ self, nixpkgs, ... }@inputs:
11+
let
12+
inherit (self) outputs;
13+
systems = (import inputs.systems);
14+
forAllSystems = nixpkgs.lib.genAttrs systems;
15+
in
16+
{
17+
devShells = forAllSystems (
18+
system:
19+
let
20+
pkgs = import nixpkgs { inherit system; };
21+
in
22+
{
23+
default = (import ./shell.nix) { inherit pkgs; };
24+
}
25+
);
26+
};
27+
}
28+

‎shell.nix‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
pkgs ? import <nixpkgs> {},
3+
}:
4+
5+
pkgs.mkShell {
6+
buildInputs = with pkgs; [
7+
meson
8+
ninja
9+
pkg-config
10+
python3
11+
openssl.dev
12+
zlib.dev
13+
libuv.dev
14+
libffi.dev
15+
# xmake
16+
];
17+
}

0 commit comments

Comments
 (0)