add initial flake.nix
This commit is contained in:
38
flake.nix
Normal file
38
flake.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
description = "";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
inputs.devshell.url = "github:numtide/devshell";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils, devshell }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
overlays = [ devshell.overlay ];
|
||||||
|
};
|
||||||
|
|
||||||
|
myPython = pkgs.python310.withPackages (p: with p; [
|
||||||
|
yt-dlp
|
||||||
|
]);
|
||||||
|
in {
|
||||||
|
devShell = pkgs.devshell.mkShell {
|
||||||
|
name = "";
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
myPython
|
||||||
|
];
|
||||||
|
|
||||||
|
# Use $1 for positional args
|
||||||
|
commands = [
|
||||||
|
# {
|
||||||
|
# name = "";
|
||||||
|
# help = "";
|
||||||
|
# command = "";
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
Reference in New Issue
Block a user