Skip to content

Commit 867300c

Browse files
committed
Add shell.nix
With this on nixos the server can be launched with: ```sh nix-shell --command ./otsd ``` Approach suggested https://wiki.nixos.org/wiki/Python In comparison to the requirements.txt we are not specifying exact version for each lib, in case of incompatibility deps must be packaged like suggested in the mentioned guide.
1 parent e4cba4e commit 867300c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

shell.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# shell.nix
2+
let
3+
# We pin to a specific nixpkgs commit for reproducibility.
4+
# Last updated: 2024-04-29. Check for new commits at https://status.nixos.org.
5+
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/cf8cc1201be8bc71b7cbbbdaf349b22f4f99c7ae.tar.gz") {};
6+
in pkgs.mkShell {
7+
packages = [
8+
(pkgs.python3.withPackages (python-pkgs: [
9+
python-pkgs.opentimestamps
10+
python-pkgs.leveldb
11+
python-pkgs.pystache
12+
python-pkgs.requests
13+
python-pkgs.qrcode
14+
python-pkgs.simplejson
15+
python-pkgs.bitcoinlib
16+
]))
17+
];
18+
}

0 commit comments

Comments
 (0)