feat(nix): migrate to Nix Flakes

Fixes SDP-28
This commit is contained in:
Harsh Shandilya 2022-12-17 23:32:19 +00:00
parent ffbc5af2d9
commit 341a85ad5c
6 changed files with 241 additions and 53 deletions

View file

@ -1,8 +1,6 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
xorg.libxcb
python39
] ++ pkgs.lib.optionals stdenv.isDarwin
[ pkgs.darwin.apple_sdk.frameworks.AppKit ];
}
(import (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url =
"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}) { src = ./.; }).shellNix