dev-templates/nim/flake.nix

24 lines
574 B
Nix
Raw Normal View History

2022-07-31 21:01:58 +02:00
{
description = "A Nix-flake-based Protobuf development environment";
inputs = { dev.url = "github:the-nix-way/dev-templates"; };
outputs = { self, dev }:
let inherit (dev.lib) flake-utils nixpkgs;
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) mkShell nim;
in {
devShells = {
default = mkShell {
buildInputs = [ nim ];
shellHook = ''
${nim}/bin/nim --version
'';
};
};
});
}