Skip to content

Commit

Permalink
add: nushell
Browse files Browse the repository at this point in the history
close #766
  • Loading branch information
madonuko committed Oct 29, 2023
1 parent e5f66a2 commit 64cc407
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/rust/nushell/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "nushell.spec"
}
}
30 changes: 30 additions & 0 deletions anda/rust/nushell/nushell.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Name: nushell
Version: 0.86.0
Release: 1%{?dist}
Summary: A new type of shell
License: MIT
URL: https://www.nushell.sh/
Source0: https://github.com/nushell/nushell/archive/refs/tags/%version.tar.gz
BuildRequires: cargo
Requires: glibc gcc-libs openssl zlib

%description
%summary.

%prep
%autosetup

%build
CFLAGS+=" -ffat-lto-objects"
cargo build --release --workspace --features=extra,dataframe

%install
find target/release -maxdepth 1 -executable -type f -name "nu*" -exec install -vDm755 -t %buildroot%_bindir "{}" +

%files
%doc README.md
%license LICENSE
%_bindir/nu*

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/rust/nushell/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("nushell/nushell"));

0 comments on commit 64cc407

Please sign in to comment.