Add default.nix, allow for nix run.

This commit is contained in:
CronyAkatsuki 2024-03-07 21:18:14 +01:00
parent 3e3687b700
commit 06dcf34160
5 changed files with 25 additions and 0 deletions

12
default.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs.python3Packages;
buildPythonPackage rec {
name = "hb-downloader";
src = ./.;
propagatedBuildInputs = [ requests pkgs.aria2 ];
meta.mainProgram = "hb-downloader";
postInstall = ''
mv -v $out/bin/hb-downloader.py $out/bin/hb-downloader
'';
}