Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
945b6250
Commit
945b6250
authored
May 29, 2020
by
Casey Strouse
Committed by
GitHub
May 29, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4089 from uberhacker/update-stack-package
Update stack to actually work
parents
0b0b3ae1
6b820ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
27 deletions
+7
-27
packages/stack.rb
packages/stack.rb
+7
-27
No files found.
packages/stack.rb
View file @
945b6250
...
...
@@ -3,41 +3,21 @@ require 'package'
class
Stack
<
Package
description
'The Haskell Tool Stack - Stack is a cross-platform program for developing Haskell projects. It is aimed at Haskellers both new and experienced.'
homepage
'https://docs.haskellstack.org/en/stable/README/'
version
'2.1.3'
version
'2.1.3
-1
'
case
ARCH
when
'aarch64'
source_url
'https://github.com/commercialhaskell/stack/releases/download/v2.1.3/stack-2.1.3-linux-aarch64.tar.gz'
source_sha256
'96394b616e29b3bd2479a3712e2c0c375a7cfd748b613f7c6c3186d7ae92977b'
when
'armv7l'
source_url
'https://github.com/commercialhaskell/stack/releases/download/v2.1.3/stack-2.1.3-linux-arm.tar.gz'
source_sha256
'6c8a2100183368d0fe8298bc99260681f10c81838423884be885baaa2e096e78'
when
'i686'
source_url
'https://github.com/commercialhaskell/stack/releases/download/v2.1.3/stack-2.1.3-linux-i386.tar.gz'
source_sha256
'4acd97f4c91b1d1333c8d84ea38f690f0b5ac5224ba591f8cdd1b9d0e8973807'
when
'x86_64'
source_url
'https://github.com/commercialhaskell/stack/releases/download/v2.1.3/stack-2.1.3-linux-x86_64.tar.gz'
source_sha256
'c724b207831fe5f06b087bac7e01d33e61a1c9cad6be0468f9c117d383ec5673'
end
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/stack-2.1.3-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/stack-2.1.3-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/stack-2.1.3-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/stack-2.1.3-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'fc7da39bc31870079388f77b9410c582103d160fa3bbdfddd7d3a168da9caa7e'
,
armv7l:
'fc7da39bc31870079388f77b9410c582103d160fa3bbdfddd7d3a168da9caa7e'
,
i686:
'd5e1452abdf115ac7452f2508ff8b367300fc18075af918bba5e1b9544e6337f'
,
x86_64:
'96a7fd13f475e3465a35b5cd70082abfb2b1cef72474851952b9e2dda048a3c9'
,
})
def
self
.
install
FileUtils
.
mkdir_p
"
#{
CREW_DEST_HOME
}
/.stack"
FileUtils
.
mkdir_p
CREW_DEST_HOME
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/.stack"
system
"install -Dm755 stack
#{
CREW_DEST_PREFIX
}
/bin/stack"
system
"echo 'local-bin-path:
#{
CREW_PREFIX
}
/bin' >
#{
CREW_DEST_HOME
}
/.stack/config.yaml"
system
"echo 'local-programs-path:
#{
CREW_PREFIX
}
/share/stack' >>
#{
CREW_DEST_HOME
}
/.stack/config.yaml"
system
"echo 'local-bin-path:
#{
CREW_PREFIX
}
/bin' >
#{
CREW_DEST_PREFIX
}
/.stack/config.yaml"
system
"echo 'local-programs-path:
#{
CREW_PREFIX
}
/share/stack' >>
#{
CREW_DEST_PREFIX
}
/.stack/config.yaml"
FileUtils
.
ln_s
"
#{
CREW_PREFIX
}
/.stack"
,
"
#{
CREW_DEST_HOME
}
/.stack"
end
def
self
.
postinstall
...
...
@@ -48,7 +28,7 @@ class Stack < Package
puts
"source ~/.bashrc"
.
lightblue
puts
puts
"To completely uninstall stack, execute the following:"
.
lightblue
puts
"crew remove
cabal ghc
stack"
.
lightblue
puts
"crew remove stack"
.
lightblue
puts
"rm -rf
#{
CREW_PREFIX
}
/share/stack"
.
lightblue
puts
"rm -rf ~/.stack"
.
lightblue
puts
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment