From cc8fdd722f9cdf929f9b73de2390d01747df2aba Mon Sep 17 00:00:00 2001 From: Esteve Soler Arderiu Date: Thu, 11 Jan 2024 13:11:01 +0100 Subject: [PATCH 1/2] Add `shell.nix`. --- shell.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3ddebe6 --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +{ nixpkgs ? import {} }: + +let + pinnedPkgs = builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/23.05.tar.gz"; + sha256 = "10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf"; + }; + pkgs = import pinnedPkgs {}; +in + +pkgs.mkShell { + buildInputs = with pkgs; [ + pkgs.cargo + pkgs.rustc + ]; +} From 2a2a143682af5d922c0f219a94a6943cedadbd1a Mon Sep 17 00:00:00 2001 From: Esteve Soler Arderiu Date: Thu, 11 Jan 2024 16:01:45 +0100 Subject: [PATCH 2/2] Add dependencies (broken). --- shell.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 3ddebe6..c3e090e 100644 --- a/shell.nix +++ b/shell.nix @@ -2,8 +2,8 @@ let pinnedPkgs = builtins.fetchTarball { - url = "https://github.com/NixOS/nixpkgs/archive/23.05.tar.gz"; - sha256 = "10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf"; + url = "https://github.com/NixOS/nixpkgs/archive/23.11.tar.gz"; + sha256 = "1ndiv385w1qyb3b18vw13991fzb9wg4cl21wglk89grsfsnra41k"; }; pkgs = import pinnedPkgs {}; in @@ -12,5 +12,10 @@ pkgs.mkShell { buildInputs = with pkgs; [ pkgs.cargo pkgs.rustc + + pkgs.iconv + pkgs.llvm_17 + pkgs.ncurses + pkgs.zlib ]; }