Migrate to nix flake

This commit is contained in:
Loic Nageleisen 2024-10-18 20:11:01 +02:00
parent 8617f69d4c
commit c3e9c4e745
Signed by: lloeki
GPG key ID: D05DAEE6889F94C2
5 changed files with 120 additions and 10 deletions

View file

@ -1,10 +1,10 @@
{ pkgs ? import(fetchTarball("https://github.com/NixOS/nixpkgs/archive/d51f8579f03a76718d643dd184ae964e6f0dd751.tar.gz")) {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
vim
neovim
vim-language-server
vim-vint
];
}
(import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).shellNix