mirror of
https://codeberg.org/puppe/mpbackup.git
synced 2025-12-19 21:42:17 +01:00
Add support for nix-shell and direnv
This commit is contained in:
parent
a0d1c1c5c1
commit
6388495fc7
3 changed files with 15 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use nix
|
||||
7
common-attrs.nix
Normal file
7
common-attrs.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
pkgs:
|
||||
{
|
||||
buildInputs = with pkgs; [
|
||||
restic
|
||||
ruby
|
||||
];
|
||||
}
|
||||
7
shell.nix
Normal file
7
shell.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
let
|
||||
commonAttrs = import ./common-attrs.nix pkgs;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
inherit (commonAttrs) buildInputs;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue