Skip to content

Commit f05f916

Browse files
fixup! meta: support nix flake for buliding
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent 8a570e2 commit f05f916

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

flake.lock

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

flake.nix

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "Server equivalent of the popular Phoenix wallet";
33

44
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05";
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
66
flake-utils.url = "github:numtide/flake-utils";
77
};
88

@@ -13,26 +13,30 @@
1313
inherit system;
1414
overlays = [ ];
1515
};
16+
# Importing glibc 2.19
17+
pkgs-glibc = import
18+
(builtins.fetchTarball {
19+
url = "https://github.com/NixOS/nixpkgs/archive/b6f505c60a2417d4fad4dc5245754e4e33eb4d40.tar.gz";
20+
sha256 = "sha256:0hhb8sar8qxi179d6c5h6n8f7nm71xxqqbynjv8pldvpsmsxxzh9";
21+
})
22+
{ inherit system; };
1623
in
1724
{
1825
packages = {
1926
default = pkgs.gnumake;
2027
};
2128
formatter = pkgs.nixpkgs-fmt;
2229

23-
devShell = pkgs.mkShell {
30+
devShell = pkgs.mkShellNoCC {
2431
buildInputs = with pkgs; [
2532
# build dependencies
26-
sqlite
2733
curl
28-
jdk
2934

3035
pkg-config
3136
ncurses
32-
stdenv.cc.cc.lib
3337

3438
git
35-
];
39+
] ++ [ pkgs-glibc.glibc pkgs-glibc.sqlite pkgs-glibc.jdk ];
3640

3741
shellHook = ''
3842
# FIXME: this need to go in a build task

0 commit comments

Comments
 (0)