35 lines
997 B
Nix
35 lines
997 B
Nix
{
|
|
description = "Dev Environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
|
version = builtins.substring 0 8 lastModifiedDate;
|
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
|
in
|
|
{
|
|
devShells = forAllSystems (system:
|
|
let
|
|
pkgs = nixpkgsFor.${system};
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.bashInteractive
|
|
pkgs.python314
|
|
pkgs.virtualenv
|
|
pkgs.ffmpeg_6
|
|
pkgs.deno
|
|
pkgs.go
|
|
pkgs.yt-dlp
|
|
];
|
|
};
|
|
});
|
|
};
|
|
} |