aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-15 04:45:20 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-15 04:45:20 -0400
commitf0a98ebd684c74695f897da1f7b9ea3503eceb44 (patch)
treed836f0990d2c494740a2e3a5fdbf017af51c5baf
parentf081aa9e2f243ffe6ea13024e3777626a8243aed (diff)
interactive_html_bom: fix asset inclusion
-rw-r--r--clef/nix/pkgs/interactive_html_bom.nix19
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
'';