(nix): upgrade to flakes

This commit is contained in:
2020-12-24 11:30:40 +01:00
parent 6ce29d99fb
commit 46a58381d5
3 changed files with 70 additions and 15 deletions

28
flake.nix Normal file
View File

@@ -0,0 +1,28 @@
{
description = "crdt-enc";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs;
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShell = pkgs.stdenv.mkDerivation {
name = "crdt-enc";
buildInputs = [
pkgs.gpgme
pkgs.libsodium
pkgs.cargo
pkgs.rustc
pkgs.rustfmt
pkgs.rust-analyzer
];
};
}
);
}