forked from external-repos/squoosh
Have a proper install script
This commit is contained in:
@@ -22,7 +22,8 @@
|
|||||||
with pkgs;
|
with pkgs;
|
||||||
{
|
{
|
||||||
packages = rec {
|
packages = rec {
|
||||||
default = stdenv.mkDerivation {
|
default = mozjpeg-squoosh;
|
||||||
|
mozjpeg-squoosh = stdenv.mkDerivation {
|
||||||
name = "mozjpeg-squoosh";
|
name = "mozjpeg-squoosh";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@@ -75,19 +76,17 @@
|
|||||||
'';
|
'';
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
};
|
};
|
||||||
};
|
installScript = writeShellScriptBin "install.sh" ''
|
||||||
devShells.default = pkgs.mkShell {
|
${pkgs.coreutils}/bin/mkdir build
|
||||||
packages = [
|
${pkgs.coreutils}/bin/cp ${mozjpeg-squoosh}/* build/
|
||||||
autoconf
|
|
||||||
automake
|
|
||||||
libtool
|
|
||||||
emscripten
|
|
||||||
pkg-config
|
|
||||||
];
|
|
||||||
shellHook = ''
|
|
||||||
echo "Path to MozJPEG: ${mozjpeg-src}"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
apps = {
|
||||||
|
install = {
|
||||||
|
type = "app";
|
||||||
|
# program = "
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user