Skip to content

Commit

Permalink
fixed path support KaylorBen#21
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiderUnderUrBed committed Oct 30, 2024
1 parent f5926e9 commit 096ff33
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hm-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,13 @@ let
plugin
else
# Wrap `plugin` in a basic derivation if it's not already a derivation
lib.traceValFn (d: d.outPath) (pkgs.stdenv.mkDerivation {
lib.traceValFn (d: d.outPath) (pkgs.stdenv.mkDerivation {
name = "plugin-${builtins.hashString "sha256" (toString plugin)}";
src = builtins.toPath plugin; # Coerce `plugin` to a path

# Default unpack phase to copy files from src to the build directory
installPhase = ''
mkdir -p $out
cp -r $src/* $out
unpackPhase = ''
cp -r $src/* $TEMPDIR/$sourceRoot && cd $TEMPDIR/$sourceRoot
'';
});

Expand Down

0 comments on commit 096ff33

Please sign in to comment.