mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
build(nix): add nix flake
This commit is contained in:
parent
2d564535af
commit
be0c11d672
4 changed files with 581 additions and 16 deletions
27
shell.nix
27
shell.nix
|
|
@ -1,15 +1,12 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
cargo rust-analyzer rustfmt
|
||||
gcc
|
||||
protobuf
|
||||
dotnet-sdk_8
|
||||
omnisharp-roslyn
|
||||
go
|
||||
nodejs yarn
|
||||
];
|
||||
|
||||
NODE_OPTIONS = "--openssl-legacy-provider";
|
||||
}
|
||||
(import (
|
||||
let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
nodeName = lock.nodes.root.inputs.flake-compat;
|
||||
in
|
||||
fetchTarball {
|
||||
url =
|
||||
lock.nodes.${nodeName}.locked.url
|
||||
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.${nodeName}.locked.narHash;
|
||||
}
|
||||
) { src = ./.; }).shellNix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue