nix: fix postInstall phase
This commit is contained in:
parent
ef97fd9daf
commit
7b6c010ef5
1 changed files with 4 additions and 3 deletions
|
@ -17,15 +17,16 @@ in
|
||||||
fs.toSource {
|
fs.toSource {
|
||||||
root = s;
|
root = s;
|
||||||
fileset = fs.unions [
|
fileset = fs.unions [
|
||||||
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) s + /src)
|
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /src))
|
||||||
lockfile
|
lockfile
|
||||||
cargoToml
|
cargoToml
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share
|
mkdir -p $out/share/contrib
|
||||||
install -Dm755 ${../contrib} $out/share/contrib
|
cp -r ${../contrib}/corpus $out/share/contrib/
|
||||||
|
cp -r ${../contrib}/lua $out/share/contrib/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cargoLock.lockFile = lockfile;
|
cargoLock.lockFile = lockfile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue