Skip to content

Commit

Permalink
build(nix): updated all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cliarena committed Nov 12, 2024
1 parent 3056511 commit a4f7723
Show file tree
Hide file tree
Showing 6 changed files with 301 additions and 26 deletions.
8 changes: 8 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.0/direnvrc" "sha256-5EwyKnkJNQeXrRkYbwwRBcXbibosCJqyIUuz9Xq+LRc="
fi

watch_file devenv.nix
watch_file devenv.lock
watch_file devenv.yaml
use flake . --impure
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ build/
.clj-kondo
.lsp
result
.devenv
.direnv
238 changes: 237 additions & 1 deletion flake.lock

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

62 changes: 44 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/9957cd48326fe8dbd52fdc50dd2502307f188b0d";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devenv.url = "github:cachix/devenv";
};

outputs = inputs@{ self,... }:
outputs = inputs@{ self, ... }:
let
system = "x86_64-linux";
system = "x86_64-linux";
pkgs = import inputs.nixpkgs { inherit system; };
deps = {
boost-json_src = pkgs.fetchFromGitHub {
Expand All @@ -17,10 +18,10 @@
hash = "sha256-c/spP97jrs6gfEzsiMpdt8DDP6n1qOQbLduY+1/i424=";
};
eventbus_src = pkgs.fetchFromGitHub {
owner = "DeveloperPaul123";
owner = "games-on-whales";
repo = "eventbus";
rev = "0.10.1";
hash = "sha256-q8ymvmgsKvU6i4DAsuzTzo7rsdGkRHqwmiLJ9qXcM/c=";
rev = "abb3a48";
hash = "sha256-LHBsjvZtxid4KIFQclqs2I155J/9UpDR1NhlSFx4OvU=";
};
immer_src = pkgs.fetchFromGitHub {
owner = "arximboldi";
Expand All @@ -31,14 +32,20 @@
inputtino_src = pkgs.fetchFromGitHub {
owner = "games-on-whales";
repo = "inputtino";
rev = "753a639";
hash = "sha256-qw0qKNWPjO/VfFqNX3uhSniY+/KMIL8aggwyvQht9z8=";
rev = "5d4b8b2";
hash = "sha256-piyGsI/BFTYJ9hVG+dw243ZDUiKZWdynJySGA6/IYlk=";
};
mdns-cpp_src = pkgs.fetchFromGitHub {
owner = "games-on-whales";
repo = "mdns_cpp";
rev = "0d57ae3";
hash = "sha256-mG/Ob5SIqcIyp5r5IpFh8bJOSul1zRzKvrvdfywVwcg=";
};
fmtlib_src = pkgs.fetchFromGitHub {
owner = "fmtlib";
repo = "fmt";
rev = "9.1.0";
hash = "sha256-rP6ymyRc7LnKxUXwPpzhHOQvpJkpnRFOt2ctvUNlYI0=";
rev = "11.0.1";
hash = "sha256-EPidbZxCvysrL64AzbpJDowiNxqy4ii+qwSWAFwf/Ps=";
};
range_src = pkgs.fetchFromGitHub {
owner = "ericniebler";
Expand All @@ -55,32 +62,44 @@
nanors_src = pkgs.fetchFromGitHub {
owner = "sleepybishop";
repo = "nanors";
rev = "395e5ada44dd8d5974eaf6bb6b17f23406e3ca72";
hash = "sha256-M/jGBgQ64DTD7YPs+B4eRuArhOnUo8uPwJcviNu+GQk=";
rev = "19f07b513e924e471cadd141943c1ec4adc8d0e0";
hash = "sha256-lpEDW5JZmFMPdJlS0/2a4MZU68dt7lz633ymbuSUyBc=";
};
peglib_src = pkgs.fetchFromGitHub {
owner = "yhirose";
repo = "cpp-peglib";
rev = "v1.8.5";
hash = "sha256-GeQQGJtxyoLAXrzplHbf2BORtRoTWrU08TWjjq7YqqE=";
};
toml_src = pkgs.fetchFromGitHub {
owner = "ToruNiina";
repo = "toml11";
rev = "v3.7.1";
hash = "sha256-HnhXBvIjo1JXhp+hUQvjs83t5IBVbNN6o3ZGhB4WESQ=";
# toml_src = pkgs.fetchFromGitHub {
# owner = "ToruNiina";
# repo = "toml11";
# rev = "v3.7.1";
# hash = "sha256-HnhXBvIjo1JXhp+hUQvjs83t5IBVbNN6o3ZGhB4WESQ=";
# };
tomlplusplus_src = pkgs.fetchFromGitHub {
owner = "marzer";
repo = "tomlplusplus";
rev = "v3.4.0";
hash = "sha256-h5tbO0Rv2tZezY58yUbyRVpsfRjY3i+5TPkkxr6La8M=";
};
cpptrace_src = pkgs.fetchFromGitHub {
owner = "jeremy-rifkin";
repo = "cpptrace";
rev = "448c325";
hash = "sha256-JGwRhmsd0xiHkK0JW0AUvWAnJA9UztK2wQ+c5aq2y6E=";
};
reflect-cpp_src = pkgs.fetchFromGitHub {
owner = "getml";
repo = "reflect-cpp";
rev = "54c2a84";
hash = "sha256-JLUH6LDEeWrEiVYXEMrqI5/y0HXFr0HH+iwtVHQ+qqk=";
};
libdwarf_src = pkgs.fetchFromGitHub {
owner = "jeremy-rifkin";
repo = "libdwarf-lite";
rev = "5c0cb25";
hash = "sha256-so/y6GnhwYZPFCeoKih+sPgndnuHWHE1h9mWXnccXxM=";
rev = "v0.11.0";
hash = "sha256-S2KDfWqqdQfK5+eQny2X5k0A5u9npkQ8OFRLBmTulao=";
};
simplewebserver_src = pkgs.fetchFromGitLab {
owner = "eidheim";
Expand All @@ -96,5 +115,12 @@
packages.x86_64-linux.default =
import ./nix/wolf.nix { inherit pkgs self deps; };

devShells.x86_64-linux.default = inputs.devenv.lib.mkShell {
inherit inputs pkgs;
modules = [{
env = { };
packages = with pkgs; [ nil nixfmt deadnix ];
}];
};
};
}
Loading

0 comments on commit a4f7723

Please sign in to comment.