Skip to content

Commit

Permalink
Fix snap build
Browse files Browse the repository at this point in the history
  • Loading branch information
koalaman committed Mar 3, 2024
1 parent 55be454 commit ad3c314
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
14 changes: 0 additions & 14 deletions .snapsquid.conf

This file was deleted.

18 changes: 9 additions & 9 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ description: |
# snap connect shellcheck:removable-media
version: git
base: core18
base: core20
grade: stable
confinement: strict

Expand All @@ -40,16 +40,16 @@ parts:
source: .
build-packages:
- cabal-install
- squid
stage-packages:
- libatomic1
override-build: |
# See comments in .snapsquid.conf
[ "$http_proxy" ] && {
squid3 -f .snapsquid.conf
export http_proxy="http://localhost:8888"
sleep 3
}
# Give ourselves enough memory to build
dd if=/dev/zero of=/tmp/swap bs=1M count=2000
mkswap /tmp/swap
swapon /tmp/swap
cabal sandbox init
cabal update || cat /var/log/squid/*
cabal update
cabal install -j
install -d $SNAPCRAFT_PART_INSTALL/usr/bin
Expand Down

0 comments on commit ad3c314

Please sign in to comment.