Add support for nix-shell and direnv

This commit is contained in:
Martin Puppe 2020-03-25 17:22:32 +01:00
parent a0d1c1c5c1
commit 6388495fc7
3 changed files with 15 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

7
common-attrs.nix Normal file
View file

@ -0,0 +1,7 @@
pkgs:
{
buildInputs = with pkgs; [
restic
ruby
];
}

7
shell.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
let
commonAttrs = import ./common-attrs.nix pkgs;
in
pkgs.mkShell {
inherit (commonAttrs) buildInputs;
}