Files
chromebrew/packages/nushell.rb
2024-06-28 15:50:15 -04:00

34 lines
1.1 KiB
Ruby

require 'package'
class Nushell < Package
description 'A new type of shell'
homepage 'https://www.nushell.sh/'
version '0.95.0'
license 'MIT'
compatibility 'x86_64 aarch64 armv7l'
min_glibc '2.28'
source_url({
aarch64: "https://github.com/nushell/nushell/releases/download/#{version}/nu-#{version}-armv7-unknown-linux-gnueabihf.tar.gz",
armv7l: "https://github.com/nushell/nushell/releases/download/#{version}/nu-#{version}-armv7-unknown-linux-gnueabihf.tar.gz",
x86_64: "https://github.com/nushell/nushell/releases/download/#{version}/nu-#{version}-x86_64-unknown-linux-gnu.tar.gz"
})
source_sha256({
aarch64: '95ac0e7d4def3330d9bbc8a2957491c909e17406d0ac8a565685bb93c1d214fa',
armv7l: '95ac0e7d4def3330d9bbc8a2957491c909e17406d0ac8a565685bb93c1d214fa',
x86_64: 'e1d01859e0bc86093fc49a4ece37fd92573baebeea383669feca942f67672a20'
})
no_compile_needed
no_shrink
def self.install
Dir['nu*'].each do |bin|
FileUtils.install bin, "#{CREW_DEST_PREFIX}/bin/#{bin}", mode: 0o755
end
end
def self.postinstall
puts "\nType 'nu' to get started.\n".lightblue
end
end