Skip to content

Commit

Permalink
Manage system dependencies with Nix (0.x version) (#3254)
Browse files Browse the repository at this point in the history
* Add empty environment

* Add zotonic dependencies

* Add gettext

* Install inotify-tools on linux instead of fswatch

* Add rebar and erlfmt

* Add libiconv

For translations I think

* Add bashInteractive

* Update nixpkgs

To match with master

* Allow the nix package set to be overridden

Co-authored-by: Colin de Roos <colin@driebit.nl>
  • Loading branch information
cdfa and Colin de Roos committed Jan 18, 2023
1 parent 535abba commit 6d3052c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nix/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import
(builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/219b2fc946a59851cdfc59efdd11129e1cee2b44.zip"; # Most recent 22.11 commit as of 5 Dec 2022 16:18
sha256 = "sha256:05sgy7bdbqyyin07vzbx8fnc4mjw5780qf0r1ia8188ss2vxw4yr";
})
{ }
15 changes: 15 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ pkgs ? import ./nix/nixpkgs.nix }:
pkgs.mkShell {
buildInputs = with pkgs; [
bashInteractive
erlangR22
rebar3
erlfmt
imagemagick
ffmpeg
postgresql
gettext
libiconv
(if stdenv.isDarwin then fswatch else inotify-tools)
];
}

0 comments on commit 6d3052c

Please sign in to comment.