Replace shell.nix with flake.nix

This commit is contained in:
2026-07-07 10:59:19 +09:00
parent 03d1b5e74a
commit 0e002ab32d
4 changed files with 55 additions and 15 deletions
+1 -1
View File
@@ -1 +1 @@
use nix
use flake
Generated
+27
View File
@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1781577229,
"narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "567a49d1913ce81ac6e9582e3553dd90a955875f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+27
View File
@@ -0,0 +1,27 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: lib.genAttrs systems (system: f system nixpkgs.legacyPackages.${system});
in {
devShells = forAllSystems (_: pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
rocqPackages.rocq-core
rocqPackages.stdlib
rocqPackages.vsrocq-language-server
];
};
});
};
}
-14
View File
@@ -1,14 +0,0 @@
{ pkgs ? import <nixpkgs-unstable> {} }:
pkgs.mkShell {
packages = with pkgs; [
# coq_8_20
coq
coqPackages.stdlib
# coqPackages.vscoq-language-server
];
shellHook = ''
export ROCQPATH="$COQPATH"
unset COQPATH
'';
}