From b342f3f9b184e41c5fcb54e0a35d9955b3e9c24f Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 28 Oct 2022 13:00:20 +0200 Subject: [PATCH] add initial flake.nix --- flake.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1f97fc4 --- /dev/null +++ b/flake.nix @@ -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 = ""; + # } + ]; + }; + }); +}