Compare commits
2 Commits
a9bb04c4b6
...
a884e64fe0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a884e64fe0 | ||
|
|
359a34ddc5 |
20
src/build.sh
Normal file
20
src/build.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#! nix-shell -i bash --pure
|
||||||
|
#! nix-shell -p bash curl gcc zlib libffi icu77
|
||||||
|
VERSION="140.4.0esr"
|
||||||
|
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz/"
|
||||||
|
BUILDPATH=$(realpath .)
|
||||||
|
#unzip this or something
|
||||||
|
curl -RO $DOWNLOAD
|
||||||
|
tar -xzf "firefox-$VERSION.source.tar.xz src"
|
||||||
|
|
||||||
|
cd "src/js/src"
|
||||||
|
|
||||||
|
mkdir _build
|
||||||
|
cd _build
|
||||||
|
|
||||||
|
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix=$BUILDPATH \
|
||||||
|
--with-intl-api --enable-optimize
|
||||||
|
|
||||||
|
make
|
||||||
|
make install
|
||||||
4
src/notes.txt
Normal file
4
src/notes.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
VERSION = "140.4.0esr"
|
||||||
|
|
||||||
|
LINK = ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz/
|
||||||
|
// (add .asc for hash)
|
||||||
13
src/shell.nix
Normal file
13
src/shell.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
pkgs.mkShell {
|
||||||
|
# nativeBuildInputs is usually what you want -- tools you need to run
|
||||||
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user