Have a proper install script

This commit is contained in:
Surma
2024-08-07 13:05:26 +01:00
parent c308108279
commit 8c76d43a68

View File

@@ -22,7 +22,8 @@
with pkgs;
{
packages = rec {
default = stdenv.mkDerivation {
default = mozjpeg-squoosh;
mozjpeg-squoosh = stdenv.mkDerivation {
name = "mozjpeg-squoosh";
src = ./.;
nativeBuildInputs = [
@@ -75,19 +76,17 @@
'';
dontFixup = true;
};
};
devShells.default = pkgs.mkShell {
packages = [
autoconf
automake
libtool
emscripten
pkg-config
];
shellHook = ''
echo "Path to MozJPEG: ${mozjpeg-src}"
installScript = writeShellScriptBin "install.sh" ''
${pkgs.coreutils}/bin/mkdir build
${pkgs.coreutils}/bin/cp ${mozjpeg-squoosh}/* build/
'';
};
apps = {
install = {
type = "app";
# program = "
};
};
}
);
}