diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-15 04:45:20 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-15 04:45:20 -0400 |
| commit | f0a98ebd684c74695f897da1f7b9ea3503eceb44 (patch) | |
| tree | d836f0990d2c494740a2e3a5fdbf017af51c5baf | |
| parent | f081aa9e2f243ffe6ea13024e3777626a8243aed (diff) | |
interactive_html_bom: fix asset inclusion
| -rw-r--r-- | clef/nix/pkgs/interactive_html_bom.nix | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/clef/nix/pkgs/interactive_html_bom.nix b/clef/nix/pkgs/interactive_html_bom.nix index 2ed69ed..8adf7a7 100644 --- a/clef/nix/pkgs/interactive_html_bom.nix +++ b/clef/nix/pkgs/interactive_html_bom.nix @@ -12,8 +12,11 @@ rev = version; hash = "sha256-jUHEI0dWMFPQlXei3+0m1ruHzpG1hcRnxptNOXzXDqQ="; }, +}: - dummySetupPy ? writeText "setup.py" '' +let + src = thisSrc; + dummySetupPy = writeText "setup.py" '' #!/usr/bin/env python3 # vim: set ft=python : @@ -31,13 +34,16 @@ 'console_scripts': [ 'generate_interactive_bom=InteractiveHtmlBom.generate_interactive_bom:main' ] - } + }, + include_package_data=True ) - '', -}: + ''; -let - src = thisSrc; + dummyManifest = writeText "MANIFEST.in" '' + recursive-include InteractiveHtmlBom/schema * + recursive-include InteractiveHtmlBom/web * + recursive-include InteractiveHtmlBom/dialog/bitmaps * + ''; in python3Packages.buildPythonApplication { pname = "interactive_html_bom"; @@ -49,6 +55,7 @@ in python3Packages.buildPythonApplication { preBuild = '' cp -nv ${dummySetupPy} setup.py + cp -nv ${dummyManifest} MANIFEST.in rm pyproject.toml ''; |
