Bootstrap nix

This commit is contained in:
Rph :3 2025-02-10 20:23:20 +01:00
parent 0625b72a68
commit 86bd0248a1
No known key found for this signature in database
3 changed files with 22 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

2
.gitignore vendored
View File

@ -135,3 +135,5 @@ dist
.yarn/install-state.gz
.pnp.*
.direnv

19
flake.nix Normal file
View File

@ -0,0 +1,19 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
ffmpreg = pkgs.ffmpeg;
in {
devShell = with pkgs; mkShell {
buildInputs = with pkgs; [ sqlite bun bash yt-dlp mkvtoolnix ffmpreg chromaprint opustags ];
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc.lib ];
};
}
);
}