mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Update nix setup
Removes the consumedir module, use the module in the dsc project [0] instead. [0] https://github.com/docspell/dsc/blob/master/nix/module.nix
This commit is contained in:
28
nix/pkg.nix
28
nix/pkg.nix
@ -51,32 +51,4 @@ in
|
||||
inherit meta;
|
||||
};
|
||||
|
||||
tools = stdenv.mkDerivation {
|
||||
name = "docspell-tools-${cfg.version}";
|
||||
|
||||
src = fetchzip cfg.tools;
|
||||
|
||||
buildPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src/ds.sh $out/bin/ds
|
||||
sed -i 's,CURL_CMD="curl",CURL_CMD="${curl}/bin/curl",g' $out/bin/ds
|
||||
|
||||
while read f; do
|
||||
target="ds-$(basename "$f" ".sh")"
|
||||
echo "Installing $f -> $target"
|
||||
cp "$f" "$out/bin/$target"
|
||||
sed -i 's,CURL_CMD="curl",CURL_CMD="${curl}/bin/curl",g' $out/bin/$target
|
||||
sed -i 's,INOTIFY_CMD="inotifywait",INOTIFY_CMD="${inotifyTools}/bin/inotifywait",g' $out/bin/$target
|
||||
sed -i 's,JQ_CMD="jq",JQ_CMD="${jq}/bin/jq",g' $out/bin/$target
|
||||
sed -i 's,SQLITE_CMD="sqlite3",SQLITE_CMD="${sqlite}/bin/sqlite3",g' $out/bin/$target
|
||||
done < <(find . -name "*.sh" -mindepth 2 -not -path "*webextension*")
|
||||
|
||||
chmod 755 $out/bin/*
|
||||
'';
|
||||
|
||||
inherit meta;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user