From a530dc0ca826d9d1f2dc13674cc2986ad8c53602 Mon Sep 17 00:00:00 2001 From: Wayne Van Son Date: Mon, 7 Sep 2020 20:56:56 +1000 Subject: [PATCH] New package: spago-0.16.0 --- srcpkgs/spago/patches/libtinfo-new.patch | 16 +++++++++++++ srcpkgs/spago/template | 29 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 srcpkgs/spago/patches/libtinfo-new.patch create mode 100644 srcpkgs/spago/template diff --git a/srcpkgs/spago/patches/libtinfo-new.patch b/srcpkgs/spago/patches/libtinfo-new.patch new file mode 100644 index 00000000000..f8b5046cd1b --- /dev/null +++ b/srcpkgs/spago/patches/libtinfo-new.patch @@ -0,0 +1,16 @@ +# patch a dependency that uses libtinfo.so.5 because it's obsolete. +diff --git stack.yaml stack.yaml +index ae14f29..5e3b078 100644 +--- stack.yaml ++++ stack.yaml +@@ -41,6 +41,9 @@ extra-deps: + - typed-process-0.2.6.0@sha256:c901c13d491441830eb23132ad6968243a56b98161629d260a26c0b13c735fcd + - unliftio-0.2.12@sha256:b089fbc2ff2628a963c2c4b12143f2020874e3e5144ffd6c62b25639a0ca1483 + - hspec-megaparsec-2.0.1@sha256:7f26ab334eaa653054766110cf259c31314d1c2ec170270e56101e344ce65ef9,2163 + allow-newer: true + nix: + packages: [zlib] ++flags: ++ haskeline: ++ terminfo: false +\ No newline at end of file \ No newline at end of file diff --git a/srcpkgs/spago/template b/srcpkgs/spago/template new file mode 100644 index 00000000000..a59c0e8a1ca --- /dev/null +++ b/srcpkgs/spago/template @@ -0,0 +1,29 @@ +# Template file for 'spago' +pkgname=spago +version=0.16.0 +revision=1 +build_style="haskell-stack" +hostmakedepends="stack" +makedepends="ncurses-libtinfo-devel tar xz zlib-devel" +short_desc="PureScript package manager & build tool powered by Dhall & package-sets" +maintainer="Wayne Van Son " +license="BSD-3-Clause" +homepage="https://github.com/purescript/spago" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum="3172cb0a5d5f603d77b0b2b6b22652c202417281340743e6478ceef1055d03c9" +nopie_files="/usr/bin/spago" +nocross="yes" + +do_build() { + STACK_ROOT="$wrksrc/.stack" stack build +} + +do_install() { + vmkdir usr/bin + STACK_ROOT="$wrksrc/.stack" stack install \ + --local-bin-path=${DESTDIR}/usr/bin +} + +post_install() { + vlicense LICENSE +}