Files
chromebrew/packages/nushell.rb
2026-03-06 02:21:18 +00:00

38 lines
1.2 KiB
Ruby

require 'package'
class Nushell < Package
description 'A new type of shell'
homepage 'https://www.nushell.sh/'
version '0.111.0'
license 'MIT'
compatibility 'aarch64 armv7l x86_64'
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: '85d9bc4f20fa3a0296ce60b2cbe4ece45e97841a736414d93727680088759cb9',
armv7l: '85d9bc4f20fa3a0296ce60b2cbe4ece45e97841a736414d93727680088759cb9',
x86_64: 'aa5376efaa5f2da98ebae884b901af6504dc8291acf5f4147ac994e9d03cd1ba'
})
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
ExitMessage.add "\nType 'nu' to get started.\n"
end
def self.postremove
Package.agree_to_remove("#{CREW_PREFIX}/.config/nushell")
end
end