Add default.nix, allow for nix run
.
This commit is contained in:
parent
3e3687b700
commit
06dcf34160
5 changed files with 25 additions and 0 deletions
12
default.nix
Normal file
12
default.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue