Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
4941 lines (4443 sloc) 188 KB
{- Dhall prelue imports -}
let concatMapSep =
https://raw.githubusercontent.com/dhall-lang/dhall-lang/9f259cd68870b912fbf2f2a08cd63dc3ccba9dc3/Prelude/Text/concatMapSep sha256:c272aca80a607bc5963d1fcb38819e7e0d3e72ac4d02b1183b1afb6a91340840
let concat =
https://raw.githubusercontent.com/dhall-lang/dhall-lang/dbcf50c27b1592a6acfd38cb3ba976e3a36b74fe/Prelude/Text/concat sha256:731265b0288e8a905ecff95c97333ee2db614c39d69f1514cb8eed9259745fc0
let concatMapText =
https://raw.githubusercontent.com/dhall-lang/dhall-lang/9f259cd68870b912fbf2f2a08cd63dc3ccba9dc3/Prelude/Text/concatMap sha256:7a0b0b99643de69d6f94ba49441cd0fa0507cbdfa8ace0295f16097af37e226f
let not =
https://raw.githubusercontent.com/dhall-lang/dhall-lang/9f259cd68870b912fbf2f2a08cd63dc3ccba9dc3/Prelude/Bool/not sha256:723df402df24377d8a853afed08d9d69a0a6d86e2e5b2bac8960b0d4756c7dc4
let types =
../dhall/cpkg-types.dhall sha256:caef717db41539eb7ded38d8cd676ba998bd387171ba3fd2db7fea9e8ee8f361
let prelude =
../dhall/cpkg-prelude.dhall sha256:4eae9adcc22ceda96091f3fa560aa095dbf8de05f7cf0387061042a9f31d10ee
let gpgPackage =
λ(x : { name : Text, version : List Natural })
prelude.simplePackage x
{ pkgUrl =
"https://gnupg.org/ftp/gcrypt/${x.name}/${x.name}-${prelude.showVersion
x.version}.tar.bz2"
}
let gnupg =
λ(v : List Natural)
gpgPackage { name = "gnupg", version = v }
{ pkgDeps =
[ prelude.lowerBound { name = "npth", lower = [ 1, 2 ] }
, prelude.lowerBound { name = "libgpg-error", lower = [ 1, 24 ] }
, prelude.lowerBound { name = "libgcrypt", lower = [ 1, 7, 0 ] }
, prelude.lowerBound { name = "libassuan", lower = [ 2, 5, 0 ] }
, prelude.lowerBound { name = "libksba", lower = [ 1, 3, 4 ] }
]
, configureCommand =
prelude.configureMkExes
[ "tests/inittests", "tests/runtest", "tests/pkits/inittests" ]
, installCommand = prelude.installWithBinaries [ "bin/gpg" ]
}
let npth = λ(v : List Natural) gpgPackage { name = "npth", version = v }
let libgpgError =
λ(v : List Natural) gpgPackage { name = "libgpg-error", version = v }
let libgcrypt =
λ(v : List Natural)
gpgPackage { name = "libgcrypt", version = v }
{ pkgDeps =
[ prelude.lowerBound { name = "libgpg-error", lower = [ 1, 25 ] } ]
}
let libassuan =
λ(v : List Natural)
gpgPackage { name = "libassuan", version = v }
{ pkgDeps =
[ prelude.lowerBound { name = "libgpg-error", lower = [ 1, 24 ] } ]
}
let libksba =
λ(v : List Natural)
gpgPackage { name = "libksba", version = v }
{ pkgDeps =
[ prelude.lowerBound { name = "libgpg-error", lower = [ 1, 8 ] } ]
}
let musl =
λ(v : List Natural)
prelude.simplePackage { name = "musl", version = v }
{ pkgUrl =
"https://www.musl-libc.org/releases/musl-${prelude.showVersion
v}.tar.gz"
, installCommand = prelude.installWithBinaries [ "bin/musl-gcc" ]
, configureCommand = prelude.configureMkExes [ "tools/install.sh" ]
}
let binutils =
λ(v : List Natural)
prelude.makeGnuExe { name = "binutils", version = v }
{ pkgUrl =
"https://ftp.wayne.edu/gnu/binutils/binutils-${prelude.showVersion
v}.tar.xz"
, configureCommand = prelude.configureMkExes [ "mkinstalldirs" ]
, installCommand =
prelude.installWithBinaries
[ "bin/ar"
, "bin/as"
, "bin/ld"
, "bin/strip"
, "bin/strings"
, "bin/readelf"
, "bin/objdump"
, "bin/nm"
, "bin/ranlib"
]
}
let bison =
λ(v : List Natural)
prelude.makeGnuExe { name = "bison", version = v }
{ configureCommand =
prelude.configureMkExes [ "build-aux/move-if-change" ]
, buildCommand =
λ(cfg : types.BuildVars)
prelude.generalBuild
prelude.singleThreaded
(prelude.buildEnv cfg)
cfg
, installCommand =
prelude.installWithBinaries [ "bin/bison", "bin/yacc" ]
, pkgBuildDeps = [ prelude.unbounded "m4" ]
}
let cmake =
λ(cfg : { version : List Natural, patch : Natural })
let patchString = Natural/show cfg.patch
let versionString = prelude.showVersion cfg.version
let cmakeConfigure =
λ(cfg : types.BuildVars)
prelude.configureMkExesExtraFlags
{ bins = [ "bootstrap" ]
, extraFlags = [ "--parallel=${Natural/show cfg.cpus}" ]
}
cfg
in prelude.defaultPackage
{ pkgName = "cmake"
, pkgVersion = prelude.fullVersion cfg
, pkgUrl =
"https://cmake.org/files/v${versionString}/cmake-${versionString}.${patchString}.tar.gz"
, pkgSubdir = "cmake-${versionString}.${patchString}"
, configureCommand = cmakeConfigure
, installCommand =
λ(cfg : types.BuildVars)
let wrapper =
"CMAKE_ROOT=${cfg.installDir}/share/cmake-${versionString}/ ${cfg.installDir}/bin/cmake \$@"
let wrapped = "wrapper/cmake"
in prelude.defaultInstall cfg
# [ prelude.createDir "wrapper"
, prelude.writeFile
{ file = wrapped, contents = wrapper }
, prelude.mkExe wrapped
, prelude.copyFile wrapped wrapped
, prelude.symlinkBinary wrapped
]
}
let curl =
λ(v : List Natural)
prelude.simplePackage { name = "curl", version = v }
{ pkgUrl =
"https://curl.haxx.se/download/curl-${prelude.showVersion
v}.tar.xz"
, installCommand = prelude.installWithBinaries [ "bin/curl" ]
, pkgDeps = [ prelude.unbounded "zlib" ]
}
let dbus =
λ(v : List Natural)
prelude.simplePackage { name = "dbus", version = v }
{ pkgUrl =
"https://dbus.freedesktop.org/releases/dbus/dbus-${prelude.showVersion
v}.tar.xz"
, pkgDeps =
[ prelude.unbounded "expat", prelude.unbounded "libselinux" ]
, configureCommand = prelude.configureLinkExtraLibs [ "pcre" ]
, pkgBuildDeps = [ prelude.unbounded "pkg-config" ]
}
let fltk =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "fltk", version = v }
{ pkgUrl =
"http://fltk.org/pub/fltk/${versionString}/fltk-${versionString}-source.tar.bz2"
, pkgSubdir = "fltk-${versionString}"
, pkgDeps =
[ prelude.unbounded "libX11"
, prelude.unbounded "alsa-lib"
, prelude.unbounded "zlib"
, prelude.unbounded "libpng"
, prelude.unbounded "libXft"
, prelude.unbounded "freetype"
]
}
let gawk =
λ(v : List Natural)
prelude.makeGnuExe { name = "gawk", version = v }
{ configureCommand =
prelude.configureMkExes
[ "install-sh", "extension/build-aux/install-sh" ]
, installCommand =
prelude.installWithBinaries [ "bin/gawk", "bin/awk" ]
}
let gc =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "gc", version = v }
{ pkgUrl =
"https://github.com/ivmai/bdwgc/releases/download/v${versionString}/gc-${versionString}.tar.gz"
, pkgDeps = [ prelude.unbounded "libatomic_ops" ]
}
let libatomic_ops =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libatomic_ops", version = v }
{ pkgUrl =
"https://github.com/ivmai/libatomic_ops/releases/download/v${versionString}/libatomic_ops-${versionString}.tar.gz"
}
let git =
λ(v : List Natural)
prelude.simplePackage { name = "git", version = v }
{ pkgUrl =
"https://mirrors.edge.kernel.org/pub/software/scm/git/git-${prelude.showVersion
v}.tar.xz"
, configureCommand = prelude.configureMkExes [ "check_bindir" ]
, installCommand = prelude.installWithBinaries [ "bin/git" ]
, pkgBuildDeps = [ prelude.unbounded "gettext" ]
}
let glibc =
let buildDir = Some "build"
let glibcConfigure =
λ(cfg : types.BuildVars)
let maybeHost = prelude.mkHost cfg.targetTriple
let modifyArgs = prelude.maybeAppend Text maybeHost
in [ prelude.createDir "build"
, prelude.call
{ program = "../configure"
, arguments = modifyArgs [ "--prefix=${cfg.installDir}" ]
, environment = prelude.configSome ([] : List Text) cfg
, procDir = buildDir
}
]
let glibcBuild =
λ(cfg : types.BuildVars)
[ prelude.call
{ program = prelude.makeExe cfg.buildOS
, arguments = [ "-j${Natural/show cfg.cpus}" ]
, environment = prelude.configSome ([] : List Text) cfg
, procDir = buildDir
}
]
let glibcInstall =
λ(cfg : types.BuildVars)
[ prelude.call
{ program = prelude.makeExe cfg.buildOS
, arguments = [ "install" ]
, environment = prelude.configSome ([] : List Text) cfg
, procDir = buildDir
}
]
in λ(v : List Natural)
prelude.defaultPackage
{ pkgName = "glibc"
, pkgVersion = v
, pkgUrl =
"http://mirror.keystealth.org/gnu/libc/glibc-${prelude.showVersion
v}.tar.xz"
, pkgSubdir = "glibc-${prelude.showVersion v}"
, configureCommand = glibcConfigure
, buildCommand = glibcBuild
, installCommand = glibcInstall
, pkgBuildDeps =
[ prelude.unbounded "bison"
, prelude.unbounded "gawk"
, prelude.unbounded "python3"
]
}
let gmp =
λ(v : List Natural)
prelude.simplePackage { name = "gmp", version = v }
{ pkgUrl =
"https://gmplib.org/download/gmp/gmp-${prelude.showVersion
v}.tar.lz"
, pkgBuildDeps = [ prelude.unbounded "m4" ]
}
let harfbuzz =
let symlinkHarfbuzz =
λ(h : Text) prelude.symlink "include/harfbuzz/${h}" "include/${h}"
in λ(v : List Natural)
prelude.simplePackage { name = "harfbuzz", version = v }
{ pkgUrl =
"https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${prelude.showVersion
v}.tar.xz"
, pkgDeps =
[ prelude.unbounded "freetype-prebuild"
, prelude.unbounded "glib"
]
, pkgBuildDeps = [ prelude.unbounded "pkg-config" ]
, configureCommand =
prelude.configureLinkExtraLibs [ "pcre", "z" ]
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ symlinkHarfbuzz "hb-aat-layout.h"
, symlinkHarfbuzz "hb-aat.h"
, symlinkHarfbuzz "hb-blob.h"
, symlinkHarfbuzz "hb-buffer.h"
, symlinkHarfbuzz "hb-common.h"
, symlinkHarfbuzz "hb-deprecated.h"
, symlinkHarfbuzz "hb-face.h"
, symlinkHarfbuzz "hb-font.h"
, symlinkHarfbuzz "hb-ft.h"
, symlinkHarfbuzz "hb-glib.h"
, symlinkHarfbuzz "hb-icu.h"
, symlinkHarfbuzz "hb-map.h"
, symlinkHarfbuzz "hb-ot-color.h"
, symlinkHarfbuzz "hb-ot-font.h"
, symlinkHarfbuzz "hb-ot-layout.h"
, symlinkHarfbuzz "hb-ot-math.h"
, symlinkHarfbuzz "hb-ot-name.h"
, symlinkHarfbuzz "hb-ot-shape.h"
, symlinkHarfbuzz "hb-ot-var.h"
, symlinkHarfbuzz "hb-ot.h"
, symlinkHarfbuzz "hb-set.h"
, symlinkHarfbuzz "hb-shape-plan.h"
, symlinkHarfbuzz "hb-shape.h"
, symlinkHarfbuzz "hb-subset.h"
, symlinkHarfbuzz "hb-unicode.h"
, symlinkHarfbuzz "hb-version.h"
, symlinkHarfbuzz "hb.h"
]
}
let libjpeg-turbo =
λ(v : List Natural)
prelude.cmakePackage
{ pkgName = "libjpeg-turbo"
, pkgVersion = v
, pkgUrl =
"https://ayera.dl.sourceforge.net/project/libjpeg-turbo/${prelude.showVersion
v}/libjpeg-turbo-${prelude.showVersion
v}.tar.gz"
, pkgSubdir = "libjpeg-turbo-${prelude.showVersion v}"
, pkgBuildDeps =
[ prelude.unbounded "cmake"
, prelude.unbounded "nasm"
, prelude.unbounded "make"
]
}
let libuv =
λ(v : List Natural)
prelude.defaultPackage
{ pkgName = "libuv"
, pkgVersion = v
, pkgUrl =
"https://dist.libuv.org/dist/v${prelude.showVersion
v}/libuv-v${prelude.showVersion
v}.tar.gz"
, pkgSubdir = "libuv-v${prelude.showVersion v}"
, configureCommand = prelude.autogenConfigure
, pkgBuildDeps =
[ prelude.unbounded "m4"
, prelude.unbounded "automake"
, prelude.unbounded "libtool"
]
}
let nasm =
λ(v : List Natural)
prelude.simplePackage { name = "nasm", version = v }
{ pkgUrl =
"http://www.nasm.us/pub/nasm/releasebuilds/${prelude.showVersion
v}.02/nasm-${prelude.showVersion
v}.02.tar.xz"
, pkgSubdir = "nasm-${prelude.showVersion v}.02"
, installCommand =
prelude.installWithBinaries [ "bin/nasm", "bin/ndisasm" ]
}
let ncurses =
λ(v : List Natural)
prelude.simplePackage { name = "ncurses", version = v }
{ pkgUrl =
"https://ftp.wayne.edu/gnu/ncurses/ncurses-${prelude.showVersion
v}.tar.gz"
, configureCommand =
λ(cfg : types.BuildVars)
let crossArgs =
if cfg.isCross
then [ "--disable-stripping" ]
else [] : List Text
in prelude.configureWithFlags
([ "--with-shared", "--enable-widec" ] # crossArgs)
cfg
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ prelude.symlink "lib/libncursesw.so" "lib/libncurses.so" ]
}
let pcre2 =
λ(v : List Natural)
prelude.simplePackage { name = "pcre2", version = v }
{ pkgUrl =
"https://ftp.pcre.org/pub/pcre/pcre2-${prelude.showVersion
v}.tar.bz2"
}
let pcre =
λ(v : List Natural)
prelude.simplePackage { name = "pcre", version = v }
{ pkgUrl =
"https://ftp.pcre.org/pub/pcre/pcre-${prelude.showVersion
v}.tar.bz2"
, configureCommand =
prelude.configureWithFlags
[ "--enable-utf8", "--enable-unicode-properties" ]
}
let perl5 =
let perlConfigure =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "sh"
, arguments =
[ "./Configure"
, "-des"
, "-Dprefix=${cfg.installDir}"
]
# ( if cfg.static
then [] : List Text
else [ "-Duseshrplib" ]
)
}
)
]
in let linkDir =
λ(os : types.OS)
merge
{ FreeBSD = "CORE"
, OpenBSD = "CORE"
, NetBSD = "CORE"
, Solaris = "CORE"
, Dragonfly = "CORE"
, Linux = "CORE"
, Darwin = "darwin-2level/CORE"
, Windows = "CORE"
, Redox = "CORE"
, Haiku = "CORE"
, IOS = "darwin-2level/CORE"
, AIX = "CORE"
, Hurd = "CORE"
, Android = "CORE"
, NoOs = "CORE"
}
os
in λ(v : List Natural)
let major =
Optional/fold
Natural
(List/head Natural v)
Text
Natural/show
""
in prelude.simplePackage { name = "perl", version = v }
{ pkgUrl =
"https://www.cpan.org/src/${major}.0/perl-${prelude.showVersion
v}.tar.gz"
, configureCommand = perlConfigure
, buildCommand =
λ(cfg : types.BuildVars)
prelude.generalBuild
prelude.singleThreaded
(prelude.buildEnv cfg)
cfg
, installCommand =
λ(cfg : types.BuildVars)
let libperlFile =
if cfg.static
then "libperl.a"
else "libperl.${prelude.libSuffix
(prelude.osCfg cfg)}"
in prelude.installWithBinaries
[ "bin/perl", "bin/cpan" ]
cfg
# [ prelude.symlink
"lib/${prelude.showVersion
v}/${prelude.printArch
cfg.buildArch}-${prelude.printOS
cfg.buildOS}/${linkDir
cfg.buildOS}/${libperlFile}"
"lib/${libperlFile}"
]
}
let libpng =
λ(v : List Natural)
prelude.simplePackage { name = "libpng", version = v }
{ pkgUrl =
"https://download.sourceforge.net/libpng/libpng-${prelude.showVersion
v}.tar.xz"
, pkgDeps = [ prelude.unbounded "zlib" ]
}
let sed =
λ(v : List Natural)
prelude.makeGnuExe { name = "sed", version = v }
{ installCommand =
prelude.installWithManpages
[ { file = "share/man/man1/sed.1", section = 1 } ]
, configureCommand =
prelude.configureWithFlags [ "--disable-dependency-tracking" ]
}
let tar = λ(v : List Natural) prelude.makeGnuExe { name = "tar", version = v }
let unistring =
λ(v : List Natural)
prelude.makeGnuLibrary { name = "unistring", version = v }
let valgrind =
λ(v : List Natural)
prelude.simplePackage { name = "valgrind", version = v }
{ pkgUrl =
"https://sourceware.org/pub/valgrind/valgrind-${prelude.showVersion
v}.tar.bz2"
, installCommand =
λ(cfg : types.BuildVars)
prelude.installWithBinaries [ "bin/valgrind" ] cfg
# prelude.symlinkManpages
[ { file = "share/man/man1/pdfgrep.1", section = 1 } ]
, configureCommand =
prelude.configureMkExes [ "auxprogs/make_or_upd_vgversion_h" ]
}
let vim =
λ(v : List Natural)
prelude.defaultPackage
{ pkgName = "vim"
, pkgVersion = v
, pkgUrl =
"http://ftp.vim.org/vim/unix/vim-${prelude.showVersion v}.tar.bz2"
, pkgSubdir = "vim${prelude.squishVersion v}"
, configureCommand =
prelude.configureMkExesExtraFlags
{ bins =
[ "src/configure", "src/auto/configure", "src/which.sh" ]
, extraFlags = [ "--enable-gui=no", "--enable-pythoninterp" ]
}
, installCommand =
λ(cfg : types.BuildVars)
let mkLibDynload =
λ(libs : List Text)
concatMapSep
":"
Text
( λ(dir : Text)
"${dir}:${dir}/python2.7/lib-dynload"
)
libs
let mkPython =
λ(libs : List Text)
concatMapSep
":"
Text
( λ(dir : Text)
"${dir}/python2.7/:${dir}/python2.7/lib-dynload"
)
libs
let wrapper =
"LD_LIBRARY_PATH=${mkLibDynload
cfg.linkDirs} PYTHONPATH=${mkPython
cfg.linkDirs} ${cfg.installDir}/bin/vim \$@"
let wrapped = "wrapper/vim"
in prelude.installWithBinaries [ "bin/xxd" ] cfg
# [ prelude.createDir "wrapper"
, prelude.writeFile { file = wrapped, contents = wrapper }
, prelude.mkExe wrapped
, prelude.copyFile wrapped wrapped
, prelude.symlinkBinary wrapped
]
, pkgDeps =
[ prelude.unbounded "ncurses"
, prelude.unbounded "libXpm"
, prelude.unbounded "libXt"
, prelude.unbounded "python2"
]
}
let xz =
λ(v : List Natural)
prelude.simplePackage { name = "xz", version = v }
{ pkgUrl = "https://tukaani.org/xz/xz-${prelude.showVersion v}.tar.xz"
, installCommand = prelude.installWithBinaries [ "bin/xz" ]
}
let zlib =
λ(v : List Natural)
let zlibConfigure =
λ(cfg : types.BuildVars)
let host = prelude.mkCCVar cfg
in [ prelude.call
( prelude.defaultCall
{ program = "sh"
, arguments =
[ "configure", "--prefix=${cfg.installDir}" ]
, environment = Some
( host
# [ { var = "PATH"
, value =
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
]
)
}
)
]
in prelude.simplePackage { name = "zlib", version = v }
{ pkgUrl =
"http://www.zlib.net/zlib-${prelude.showVersion v}.tar.xz"
, configureCommand = zlibConfigure
, installCommand =
prelude.installWithManpages
[ { file = "share/man/man3/zlib.3", section = 3 } ]
}
let gettext =
λ(v : List Natural)
prelude.makeGnuExe { name = "gettext", version = v }
{ installCommand =
prelude.installWithBinaries
[ "bin/gettext", "bin/msgfmt", "bin/autopoint" ]
, configureCommand =
prelude.configureWithFlags [ "--disable-dependency-tracking" ]
}
let gzip =
λ(v : List Natural) prelude.makeGnuExe { name = "gzip", version = v }
let wget =
λ(v : List Natural)
prelude.makeGnuExe { name = "wget", version = v }
{ pkgUrl =
"https://ftp.gnu.org/gnu/wget/wget-${prelude.showVersion
v}.tar.gz"
, pkgDeps = [ prelude.unbounded "gnutls" ]
, pkgBuildDeps = [ prelude.unbounded "perl" ]
, configureCommand = prelude.configureMkExes [ "doc/texi2pod.pl" ]
, installCommand = prelude.installWithWrappers [ "wget" ]
}
let gnutls =
λ(cfg : { version : List Natural, patch : List Natural })
let versionString = prelude.showVersion cfg.version
in prelude.simplePackage
{ name = "gnutls", version = cfg.version # cfg.patch }
{ pkgUrl =
"https://www.gnupg.org/ftp/gcrypt/gnutls/v${versionString}/gnutls-${versionString}.${prelude.showVersion
cfg.patch}.tar.xz"
, pkgDeps =
[ prelude.lowerBound { name = "nettle", lower = [ 3, 1 ] }
, prelude.unbounded "unistring"
, prelude.lowerBound { name = "libtasn1", lower = [ 4, 9 ] }
, prelude.lowerBound { name = "p11-kit", lower = [ 0, 23, 1 ] }
]
, configureCommand =
prelude.configureLinkExtraLibs [ "nettle", "hogweed" ]
}
let lapack =
λ(v : List Natural)
prelude.cmakePackage
{ pkgName = "lapack"
, pkgVersion = v
, pkgUrl =
"http://www.netlib.org/lapack/lapack-${prelude.showVersion
v}.tar.gz"
, pkgSubdir = "lapack-${prelude.showVersion v}"
, pkgBuildDeps =
[ prelude.unbounded "cmake", prelude.unbounded "gcc" ]
}
let cairo =
let symlinkCairo =
λ(h : Text) prelude.symlink "include/cairo/${h}" "include/${h}"
in λ(v : List Natural)
prelude.simplePackage { name = "cairo", version = v }
{ pkgUrl =
"https://www.cairographics.org/releases/cairo-${prelude.showVersion
v}.tar.xz"
, pkgDeps =
[ prelude.lowerBound { name = "pixman", lower = [ 0, 30, 0 ] }
, prelude.lowerBound { name = "freetype", lower = [ 9, 7, 3 ] }
, prelude.lowerBound
{ name = "fontconfig", lower = [ 2, 2, 95 ] }
, prelude.unbounded "libXext"
]
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ symlinkCairo "cairo-deprecated.h"
, symlinkCairo "cairo-features.h"
, symlinkCairo "cairo-ft.h"
, symlinkCairo "cairo-gobject.h"
, symlinkCairo "cairo-pdf.h"
, symlinkCairo "cairo-ps.h"
, symlinkCairo "cairo-script-interpreter.h"
, symlinkCairo "cairo-script.h"
, symlinkCairo "cairo-svg.h"
, symlinkCairo "cairo-version.h"
, symlinkCairo "cairo-xcb.h"
, symlinkCairo "cairo-xlib-xrender.h"
, symlinkCairo "cairo-xlib.h"
, symlinkCairo "cairo.h"
]
}
let pycairo =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.python2Package { name = "pycairo", version = v }
{ pkgUrl =
"https://github.com/pygobject/pycairo/releases/download/v${versionString}/pycairo-${versionString}.tar.gz"
, pkgDeps = [ prelude.unbounded "cairo" ]
}
let libnettle =
λ(v : List Natural)
prelude.simplePackage { name = "nettle", version = v }
{ pkgUrl =
"https://ftp.gnu.org/gnu/nettle/nettle-${prelude.showVersion
v}.tar.gz"
, pkgBuildDeps = [ prelude.unbounded "m4" ]
}
let diffutils =
λ(v : List Natural)
prelude.simplePackage { name = "diffutils", version = v }
{ pkgUrl =
"https://ftp.gnu.org/gnu/diffutils/diffutils-${prelude.showVersion
v}.tar.xz"
, installCommand = prelude.installWithBinaries [ "bin/diff" ]
}
let patch =
λ(v : List Natural)
prelude.makeGnuExe { name = "patch", version = v }
{ installCommand =
λ(cfg : types.BuildVars)
prelude.installWithBinaries [ "bin/patch" ] cfg
# prelude.symlinkManpages
[ { file = "share/man/man1/patch.1", section = 1 } ]
}
let m4 =
λ(v : List Natural)
prelude.makeGnuExe { name = "m4", version = v }
{ configureCommand =
λ(cfg : types.BuildVars)
[ prelude.patch
./patches/m4.patch sha256:1fecaf9238401d3fdcad92516f7c45e866e50630eae7efdaaee0da943a532b23 as Text
]
# prelude.defaultConfigure cfg
, installCommand =
prelude.installWithManpages
[ { file = "share/man/man1/m4.1", section = 1 } ]
, pkgBuildDeps = [ prelude.unbounded "patch" ]
}
let nginx =
λ(v : List Natural)
prelude.simplePackage { name = "nginx", version = v }
{ pkgUrl =
"http://nginx.org/download/nginx-${prelude.showVersion v}.tar.gz"
, pkgDeps = [ prelude.unbounded "zlib", prelude.unbounded "pcre2" ]
}
let openssl =
let opensslCfgVars =
λ(cfg : types.BuildVars)
Some
(prelude.mkCCVar cfg # prelude.configEnv ([] : List Text) cfg)
let cfgOS =
λ(os : types.OS)
merge
{ FreeBSD = "BSD-x86_64"
, OpenBSD = "BSD-x86_64"
, NetBSD = "BSD-x86_64"
, Solaris = "solaris64-x86_64-cc"
, Dragonfly = "BSD-x86_64"
, Linux = "linux-x86_64"
, Darwin = "darwin64-x86_64-cc"
, Windows = "mingw64"
, Redox = "gcc"
, Haiku = "haiku-x86_64"
, IOS = "ios64-cross"
, AIX = "aix64-cc"
, Hurd = "hurd-x86"
, Android = "android64-aarch64"
, NoOs = "gcc"
}
os
in λ(v : List Natural)
prelude.simplePackage { name = "openssl", version = v }
{ pkgUrl =
"https://www.openssl.org/source/openssl-${prelude.showVersion
v}d.tar.gz"
, configureCommand =
λ(cfg : types.BuildVars)
let sharedFlag =
if cfg.static then "no-shared" else "shared"
let targetMakefile =
if cfg.isCross then "gcc" else cfgOS cfg.buildOS
in [ prelude.call
( prelude.defaultCall
{ program = "perl"
, arguments =
[ "./Configure"
, "--prefix=${cfg.installDir}"
, targetMakefile
, sharedFlag
]
, environment = opensslCfgVars cfg
}
)
]
, pkgSubdir = "openssl-${prelude.showVersion v}d"
, pkgBuildDeps = [ prelude.unbounded "perl" ]
}
let libssh2 =
λ(v : List Natural)
prelude.simplePackage { name = "libssh2", version = v }
{ pkgUrl =
"https://www.libssh2.org/download/libssh2-${prelude.showVersion
v}.tar.gz"
}
let giflib =
λ(v : List Natural)
prelude.simplePackage { name = "giflib", version = v }
{ pkgUrl =
"https://downloads.sourceforge.net/giflib/giflib-${prelude.showVersion
v}.tar.bz2"
}
let emacs =
λ(v : List Natural)
prelude.makeGnuExe { name = "emacs", version = v }
{ pkgDeps =
[ prelude.unbounded "giflib"
, prelude.unbounded "libXaw"
, prelude.unbounded "libpng"
, prelude.unbounded "libjpeg-turbo"
, prelude.unbounded "ncurses"
, prelude.unbounded "gtk3"
, prelude.unbounded "libotf"
, prelude.unbounded "m17n-lib"
, prelude.unbounded "gnutls"
, prelude.unbounded "libXft"
, prelude.unbounded "dbus"
, prelude.unbounded "cairo"
]
, configureCommand =
prelude.configureMkExesExtraFlags
{ bins =
[ "build-aux/move-if-change", "build-aux/update-subdirs" ]
, extraFlags =
[ "--with-tiff=no"
, "--with-libotf"
, "--with-m17n-flt"
, "--with-gnutls"
, "--with-xft"
, "--with-dbus"
, "--with-cairo=yes"
]
}
, installCommand =
λ(cfg : types.BuildVars)
if cfg.static
then prelude.installWithBinaries [ "bin/emacs" ] cfg
else prelude.installWithWrappers [ "emacs" ] cfg
}
let which =
λ(v : List Natural)
prelude.makeGnuExe { name = "which", version = v }
{ pkgUrl =
"https://ftp.gnu.org/gnu/which/which-${prelude.showVersion
v}.tar.gz"
}
let automake =
λ(v : List Natural)
prelude.makeGnuExe { name = "automake", version = v }
{ pkgBuildDeps =
[ prelude.lowerBound { name = "autoconf", lower = [ 2, 65 ] } ]
, installCommand =
prelude.installWithBinaries [ "bin/automake", "bin/aclocal" ]
}
let autoconf =
λ(v : List Natural)
prelude.makeGnuExe { name = "autoconf", version = v }
{ pkgBuildDeps =
[ prelude.lowerBound { name = "m4", lower = [ 1, 4, 16 ] } ]
, installCommand =
prelude.installWithBinaries
[ "bin/autoconf"
, "bin/autoheader"
, "bin/autom4te"
, "bin/autoreconf"
]
}
let python =
λ(v : List Natural)
let major =
Optional/fold Natural (List/head Natural v) Text Natural/show ""
let versionString = prelude.showVersion v
let pyEnv =
λ(_ : List Text)
λ(cfg : types.BuildVars)
Some
( prelude.configEnv ([] : List Text) cfg
# [ { var = "CONFIG_SITE", value = "config.site" } ]
)
in prelude.simplePackage { name = "python${major}", version = v }
{ pkgUrl =
"https://www.python.org/ftp/python/${versionString}/Python-${versionString}.tar.xz"
, pkgSubdir = "Python-${versionString}"
, configureCommand =
λ(cfg : types.BuildVars)
let config =
''
ac_cv_file__dev_ptmx=yes
ac_cv_file__dev_ptc=no
''
let staticFlag =
if cfg.static
then [] : List Text
else [ "--enable-shared" ]
let crossArgs =
if cfg.isCross
then [ "--disable-ipv6" ]
else [] : List Text
in [ prelude.writeFile
{ file = "config.site", contents = config }
]
# prelude.generalConfigure
pyEnv
"configure"
([] : List Text)
( [ "--build=${prelude.printArch cfg.buildArch}" ]
# crossArgs
# staticFlag
)
cfg
, pkgDeps =
[ prelude.unbounded "libffi", prelude.unbounded "ncurses" ]
, installCommand =
λ(cfg : types.BuildVars)
prelude.installWithBinaries [ "bin/python${major}" ] cfg
# prelude.symlinkManpages
[ { file = "share/man/man1/python${major}.1"
, section = 1
}
]
}
let lua =
λ(v : List Natural)
let printLuaOS =
λ(os : types.OS)
merge
{ FreeBSD = "freebsd"
, OpenBSD = "bsd"
, NetBSD = "bsd"
, Solaris = "solaris"
, Dragonfly = "bsd"
, Linux = "linux"
, Darwin = "macosx"
, Windows = "mingw"
, Redox = "generic"
, Haiku = "generic"
, IOS = "generic"
, AIX = "generic"
, Hurd = "generic"
, Android = "generic"
, NoOs = "c89"
}
os
let luaBuild =
λ(cfg : types.BuildVars)
let cc = prelude.mkCCArg cfg
let ldflags = (prelude.mkLDFlags cfg.linkDirs).value
let cflags = (prelude.mkCFlags cfg).value
let os = prelude.osCfg cfg
in [ prelude.call
( prelude.defaultCall
{ program = "make"
, arguments =
cc
# [ printLuaOS os
, "MYLDFLAGS=${ldflags}"
, "MYCFLAGS=${cflags}"
, "MYLIBS=-lncurses"
, "-j${Natural/show cfg.cpus}"
]
}
)
]
let luaInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "make"
, arguments =
[ "install", "INSTALL_TOP=${cfg.installDir}" ]
}
)
]
# prelude.symlinkBinaries [ "bin/lua", "bin/luac" ]
in prelude.simplePackage { name = "lua", version = v }
{ pkgUrl =
"http://www.lua.org/ftp/lua-${prelude.showVersion v}.tar.gz"
, configureCommand = prelude.doNothing
, buildCommand = luaBuild
, installCommand = luaInstall
, pkgDeps =
[ prelude.unbounded "readline", prelude.unbounded "ncurses" ]
}
let libtasn1 =
λ(v : List Natural)
prelude.simplePackage { name = "libtasn1", version = v }
{ pkgUrl =
"https://ftp.gnu.org/gnu/libtasn1/libtasn1-${prelude.showVersion
v}.tar.gz"
}
let p11kit =
λ(v : List Natural)
prelude.simplePackage { name = "p11-kit", version = v }
{ pkgUrl =
"https://github.com/p11-glue/p11-kit/releases/download/${prelude.showVersion
v}/p11-kit-${prelude.showVersion
v}.tar.gz"
, pkgDeps =
[ prelude.lowerBound { name = "libffi", lower = [ 3, 0, 0 ] }
, prelude.unbounded "libtasn1"
]
, pkgBuildDeps = [ prelude.unbounded "pkg-config" ]
}
let libffi =
λ(v : List Natural)
prelude.simplePackage { name = "libffi", version = v }
{ pkgUrl =
"https://sourceware.org/ftp/libffi/libffi-${prelude.showVersion
v}.tar.gz"
}
let gdb =
λ(v : List Natural)
prelude.makeGnuExe { name = "gdb", version = v }
{ pkgBuildDeps = [ prelude.unbounded "texinfo" ] }
let libtool =
λ(v : List Natural)
prelude.makeGnuExe { name = "libtool", version = v }
{ pkgUrl =
"https://ftp.wayne.edu/gnu/libtool/libtool-${prelude.showVersion
v}.tar.xz"
, pkgBuildDeps =
[ prelude.lowerBound { name = "m4", lower = [ 1, 4, 16 ] } ]
}
let pkg-config =
λ(v : List Natural)
prelude.simplePackage { name = "pkg-config", version = v }
{ pkgUrl =
"https://pkg-config.freedesktop.org/releases/pkg-config-${prelude.showVersion
v}.tar.gz"
, configureCommand =
prelude.configureWithFlags [ "--with-internal-glib" ]
}
let qrencode =
λ(v : List Natural)
prelude.simplePackage { name = "qrencode", version = v }
{ pkgUrl =
"https://fukuchi.org/works/qrencode/qrencode-${prelude.showVersion
v}.tar.gz"
, configureCommand = prelude.configureWithFlags [ "--without-tools" ]
}
let readline =
λ(v : List Natural)
prelude.simplePackage { name = "readline", version = v }
{ pkgUrl =
"https://ftp.gnu.org/gnu/readline/readline-${prelude.showVersion
v}.tar.gz"
, pkgBuildDeps = [ prelude.unbounded "make" ]
}
let pixman =
λ(v : List Natural)
prelude.simplePackage { name = "pixman", version = v }
{ pkgUrl =
"https://www.cairographics.org/releases/pixman-${prelude.showVersion
v}.tar.gz"
, pkgDeps = [ prelude.unbounded "libpng" ]
}
let freetype-shared =
λ(x : { name : Text, version : List Natural })
let versionString = prelude.showVersion x.version
in prelude.simplePackage x
{ pkgUrl =
"https://download.savannah.gnu.org/releases/freetype/freetype-${versionString}.tar.gz"
, configureCommand =
prelude.configureMkExes [ "builds/unix/configure" ]
, pkgSubdir = "freetype-${versionString}"
, pkgBuildDeps = [ prelude.unbounded "sed" ]
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ prelude.symlink
"include/freetype2/ft2build.h"
"include/ft2build.h"
, prelude.symlink
"include/freetype2/freetype"
"include/freetype"
]
}
let freetype-prebuild =
λ(v : List Natural)
freetype-shared { name = "freetype-prebuild", version = v }
{ pkgDeps = [ prelude.unbounded "zlib", prelude.unbounded "libpng" ]
, pkgBuildDeps = [ prelude.unbounded "pkg-config" ]
}
let freetype =
λ(v : List Natural)
freetype-shared { name = "freetype", version = v }
{ pkgDeps =
[ prelude.unbounded "zlib"
, prelude.unbounded "harfbuzz"
, prelude.unbounded "libpng"
]
, configureCommand =
prelude.configureMkExesExtraFlags
{ bins = [ "builds/unix/configure" ]
, extraFlags = [ "--enable-freetype-config" ]
}
}
let sdl2 =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "sdl2", version = v }
{ pkgUrl =
"https://www.libsdl.org/release/SDL2-${versionString}.tar.gz"
, pkgSubdir = "SDL2-${versionString}"
}
let imageMagick =
λ(v : List Natural)
let versionString = prelude.showVersion v
let major =
Optional/fold Natural (List/head Natural v) Text Natural/show ""
in prelude.simplePackage { name = "imagemagick", version = v }
{ pkgUrl =
"https://imagemagick.org/download/ImageMagick-${versionString}-67.tar.xz"
, pkgSubdir = "ImageMagick-${versionString}-67"
, pkgDeps =
[ prelude.unbounded "zlib"
, prelude.unbounded "libtool"
, prelude.unbounded "bzip2"
, prelude.unbounded "glib"
]
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ prelude.symlink
"include/ImageMagick-${major}/MagickWand"
"include/wand"
, prelude.symlinkBinary "bin/convert"
]
}
let gtk2 =
let gtkEnv =
λ(cfg : types.BuildVars)
prelude.defaultPath cfg
# [ { var = "LDFLAGS"
, value =
(prelude.mkLDFlags cfg.linkDirs).value
++ " -lpcre -lfribidi"
}
, prelude.mkCFlags cfg
, prelude.mkPkgConfigVar cfg.linkDirs
, prelude.libPath cfg
, prelude.mkLDRunPath cfg.linkDirs
, prelude.mkXdgDataDirs cfg.shareDirs
, prelude.mkLDPreload cfg.preloadLibs
]
let gtkConfig =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "./configure"
, arguments = [ "--prefix=${cfg.installDir}" ]
, environment = Some (gtkEnv cfg)
}
)
]
in λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.simplePackage
{ name = "gtk2", version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/gnome/sources/gtk+/${versionString}/gtk+-${fullVersion}.tar.xz"
, pkgSubdir = "gtk+-${fullVersion}"
, pkgDeps =
[ prelude.lowerBound { name = "cairo", lower = [ 1, 6 ] }
, prelude.lowerBound { name = "pango", lower = [ 1, 20 ] }
, prelude.lowerBound { name = "atk", lower = [ 1, 29, 2 ] }
, prelude.lowerBound { name = "glib", lower = [ 2, 28, 0 ] }
, prelude.lowerBound
{ name = "gdk-pixbuf", lower = [ 2, 38, 0 ] }
]
, buildCommand =
λ(cfg : types.BuildVars)
prelude.buildWith (gtkEnv cfg) cfg
, configureCommand = gtkConfig
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ prelude.symlink
"include/gdk-pixbuf-2.0/gdk-pixbuf"
"include/gdk-pixbuf"
]
}
let mkXProto =
λ(name : Text)
λ(v : List Natural)
prelude.simplePackage { name = name, version = v }
{ pkgUrl =
"https://www.x.org/releases/individual/proto/${name}-${prelude.showVersion
v}.tar.bz2"
}
let mkXProtoWithPatch =
λ(name : Text)
λ(patch : Text)
λ(v : List Natural)
mkXProto name v
{ configureCommand = prelude.configureWithPatch patch
, pkgBuildDeps = [ prelude.unbounded "patch" ]
}
let xproto =
mkXProtoWithPatch
"xproto"
./patches/xproto.patch sha256:325215e1b547918dfe63278824cda399e61a36b6f11896c863dfacc0cb06e322 as Text
let renderproto =
mkXProtoWithPatch
"renderproto"
./patches/renderproto.patch sha256:f2f154171dabe139ba07f8602fbada3b23f3d53b5773655cfe31cba2ceb70295 as Text
let randrproto = mkXProto "randrproto"
let scrnsaverproto =
mkXProtoWithPatch
"scrnsaverproto"
./patches/scrnsaverproto.patch sha256:31983d73cdf49e8d8ed2583593f57b47d889062ae7f5bc5934a59e1e5e3e81f3 as Text
let recordproto = mkXProto "recordproto"
let xf86vidmodeproto = mkXProto "xf86vidmodeproto"
let glproto = mkXProto "glproto"
let dri2proto = mkXProto "dri2proto"
let pango =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
let pangoCfgFile =
''
option('enable_docs',
description: 'Build API reference for Pango using GTK-Doc',
type: 'boolean',
value: false)
option('gir',
description: 'Build the GObject introspection data for Pango',
type: 'boolean',
value: false)
''
let no_gir =
λ(cfg : types.BuildVars)
if cfg.isCross
then [ prelude.writeFile
{ file = "meson_options.txt"
, contents = pangoCfgFile
}
]
else [] : List types.Command
in prelude.simplePackage
{ name = "pango", version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/GNOME/sources/pango/${versionString}/pango-${fullVersion}.tar.xz"
, configureCommand =
λ(cfg : types.BuildVars)
no_gir cfg # prelude.mesonConfigure cfg
, buildCommand = prelude.ninjaBuild
, installCommand =
λ(cfg : types.BuildVars)
prelude.ninjaInstallWithPkgConfig
( prelude.mesonMoves
[ "pango.pc", "pangocairo.pc", "pangoft2.pc" ]
)
cfg
# [ prelude.symlink
"include/pango-1.0/pango"
"include/pango"
]
, pkgBuildDeps =
[ prelude.lowerBound { name = "meson", lower = [ 0, 48, 0 ] }
, prelude.unbounded "gobject-introspection"
]
, pkgDeps =
[ prelude.lowerBound
{ name = "fontconfig", lower = [ 2, 11, 91 ] }
, prelude.lowerBound { name = "cairo", lower = [ 1, 12, 10 ] }
, prelude.lowerBound { name = "fribidi", lower = [ 0, 19, 7 ] }
, prelude.lowerBound { name = "harfbuzz", lower = [ 1, 4, 2 ] }
, prelude.unbounded "libXrender"
, prelude.unbounded "libxcb"
]
}
let libxml2 =
λ(v : List Natural)
prelude.simplePackage { name = "libxml2", version = v }
{ pkgUrl =
"http://xmlsoft.org/sources/libxml2-${prelude.showVersion
v}.tar.gz"
, pkgDeps =
[ prelude.unbounded "zlib"
, prelude.unbounded "xz"
, prelude.unbounded "python2"
]
}
let shared-mime-info =
λ(v : List Natural)
prelude.simplePackage { name = "shared-mime-info", version = v }
{ pkgUrl =
"http://freedesktop.org/~hadess/shared-mime-info-${prelude.showVersion
v}.tar.xz"
, buildCommand =
λ(cfg : types.BuildVars)
prelude.generalBuild
prelude.singleThreaded
(prelude.buildEnv cfg)
cfg
, installCommand =
λ(cfg : types.BuildVars)
prelude.defaultInstall cfg
# [ prelude.symlink "share/pkgconfig" "lib/pkgconfig" ]
, pkgDeps = [ prelude.unbounded "glib", prelude.unbounded "libxml2" ]
, pkgBuildDeps =
[ prelude.lowerBound { name = "intltool", lower = [ 0, 35, 0 ] }
, prelude.unbounded "sed"
, prelude.unbounded "gettext"
]
}
let intltool =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "intltool", version = v }
{ pkgUrl =
"https://launchpad.net/intltool/trunk/${versionString}/+download/intltool-${versionString}.tar.gz"
, configureCommand =
λ(cfg : types.BuildVars)
[ prelude.patch
./patches/intltool.patch sha256:e33e9b3e43d80a17475e36c05ed4e649fa5d610991044749e6321dff555cc8e5 as Text
, prelude.call
( prelude.defaultCall
{ program = "./configure"
, arguments = [ "--prefix=${cfg.installDir}" ]
, environment = Some
( prelude.defaultPath cfg
# [ prelude.mkPerlLib
{ libDirs = cfg.linkDirs
, perlVersion = [ 5, 30, 1 ]
, cfg = cfg
}
]
)
}
)
]
, pkgDeps = [ prelude.unbounded "XML-Parser" ]
, pkgBuildDeps =
[ prelude.lowerBound { name = "perl", lower = [ 5, 8, 1 ] } ]
}
let gdk-pixbuf =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
let gdkInstall =
λ(fs : List { src : Text, dest : Text })
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "ninja"
, environment = Some
[ prelude.mkPkgConfigVar cfg.linkDirs
, { var = "PATH"
, value =
prelude.mkPathVar cfg.binDirs
++ ":${cfg.currentDir}/gdk-pixbuf-${fullVersion}/build/gdk-pixbuf:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
, prelude.mkPy3Path cfg.linkDirs
, prelude.libPath cfg
, prelude.mkLDRunPath cfg.linkDirs
, prelude.mkLDFlags cfg.linkDirs
, prelude.mkCFlags cfg
]
, arguments = [ "install" ]
, procDir = Some "build"
}
)
, prelude.symlink
"include/gdk-pixbuf-2.0/gdk-pixbuf"
"include/gdk-pixbuf"
]
# prelude.copyFiles fs
in prelude.simplePackage
{ name = "gdk-pixbuf", version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/${versionString}/gdk-pixbuf-${fullVersion}.tar.xz"
, configureCommand = prelude.mesonConfigure
, buildCommand = prelude.ninjaBuild
, installCommand =
gdkInstall (prelude.mesonMoves [ "gdk-pixbuf-2.0.pc" ])
, pkgDeps =
[ prelude.unbounded "glib"
, prelude.unbounded "libjpeg-turbo"
, prelude.unbounded "libpng"
, prelude.unbounded "gobject-introspection"
, prelude.unbounded "shared-mime-info"
, prelude.unbounded "libX11"
]
}
let xmlParser =
λ(v : List Natural)
prelude.simplePackage { name = "XML-Parser", version = v }
{ pkgUrl =
"https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-${prelude.showVersion
v}.tar.gz"
, configureCommand = prelude.perlConfigure
, pkgBuildDeps = [ prelude.unbounded "perl" ]
, pkgDeps = [ prelude.unbounded "expat" ]
}
let meson =
λ(v : List Natural)
prelude.simplePackage { name = "meson", version = v }
{ pkgUrl =
"https://github.com/mesonbuild/meson/archive/${prelude.showVersion
v}.tar.gz"
, configureCommand =
λ(cfg : types.BuildVars)
prelude.python3Install cfg # prelude.mkPy3Wrapper "meson" cfg
, buildCommand = prelude.doNothing
, installCommand = prelude.doNothing
, pkgDeps = [ prelude.unbounded "python3" ]
}
let ninja =
let ninjaConfigure =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "./configure.py"
, arguments = [ "--bootstrap" ]
}
)
]
let ninjaInstall =
λ(cfg : types.BuildVars)
[ prelude.copyFile "ninja" "bin/ninja"
, prelude.symlinkBinary "bin/ninja"
]
in λ(v : List Natural)
prelude.simplePackage { name = "ninja", version = v }
{ pkgUrl =
"https://github.com/ninja-build/ninja/archive/v${prelude.showVersion
v}.tar.gz"
, configureCommand = ninjaConfigure
, buildCommand = prelude.doNothing
, installCommand = ninjaInstall
, pkgBuildDeps = [ prelude.unbounded "python2" ]
}
let fontconfig =
λ(v : List Natural)
prelude.simplePackage { name = "fontconfig", version = v }
{ pkgUrl =
"https://www.freedesktop.org/software/fontconfig/release/fontconfig-${prelude.showVersion
v}.tar.bz2"
, pkgDeps =
[ prelude.unbounded "freetype"
, prelude.unbounded "expat"
, prelude.unbounded "util-linux"
]
, pkgBuildDeps = [ prelude.unbounded "gperf" ]
}
let util-linux =
λ(x : { version : List Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString
in prelude.simplePackage { name = "util-linux", version = x.version }
{ pkgUrl =
"https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v${versionString}/util-linux-${fullVersion}.tar.xz"
, configureCommand =
λ(cfg : types.BuildVars)
let crossFlags =
if cfg.isCross
then [ "--disable-pylibmount", "--without-tinfo" ]
else [] : List Text
in prelude.configureWithFlags
( [ "--disable-makeinstall-chown"
, "--disable-bash-completion"
]
# crossFlags
)
cfg
, pkgDeps =
[ prelude.unbounded "ncurses", prelude.unbounded "pcre2" ]
}
let fribidi =
λ(v : List Natural)
prelude.simplePackage { name = "fribidi", version = v }
{ pkgUrl =
"https://github.com/fribidi/fribidi/releases/download/v${prelude.showVersion
v}/fribidi-${prelude.showVersion
v}.tar.bz2"
}
let gobject-introspection =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.ninjaPackage
{ name = "gobject-introspection"
, version = prelude.fullVersion x
}
{ pkgUrl =
"https://download.gnome.org/sources/gobject-introspection/${versionString}/gobject-introspection-${fullVersion}.tar.xz"
, pkgBuildDeps =
[ prelude.unbounded "meson"
, prelude.unbounded "m4"
, prelude.unbounded "bison"
, prelude.unbounded "flex"
, prelude.unbounded "pkg-config"
, prelude.unbounded "glibc"
]
, pkgDeps =
[ prelude.lowerBound { name = "glib", lower = [ 2, 58, 0 ] } ]
, installCommand =
λ(cfg : types.BuildVars)
[ prelude.mkExe "build/tools/g-ir-scanner"
, prelude.copyFile
"build/gobject-introspection-1.0.pc"
"lib/pkgconfig/gobject-introspection-1.0.pc"
]
# prelude.ninjaInstall cfg
}
let flex =
λ(v : List Natural)
let versionString = prelude.showVersion v
let flexEnv =
λ(_ : List Text)
λ(cfg : types.BuildVars)
Some
( prelude.configEnv ([] : List Text) cfg
# [ { var = "YFLAGS", value = "-Wno-error=yacc" } ]
)
in prelude.simplePackage { name = "flex", version = v }
{ pkgUrl =
"https://github.com/westes/flex/releases/download/v${versionString}/flex-${versionString}.tar.gz"
, pkgBuildDeps =
[ prelude.unbounded "m4", prelude.unbounded "bison" ]
, configureCommand = prelude.configWithEnv flexEnv
, installCommand = prelude.installWithBinaries [ "bin/flex" ]
}
let glib =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
let glibConfigure =
λ(cfg : types.BuildVars)
let crossArgs =
if cfg.isCross
then [ "--cross-file", "cross.txt" ]
else [] : List Text
in [ prelude.createDir "build"
, prelude.writeFile
{ file = "build/cross.txt"
, contents = prelude.mesonCfgFile cfg
}
, prelude.call
{ program = "meson"
, arguments =
[ "--prefix=${cfg.installDir}"
, ".."
, "-Dselinux=disabled"
]
# crossArgs
, environment = Some
( [ prelude.mkPkgConfigVar cfg.linkDirs
, { var = "LDFLAGS"
, value =
(prelude.mkLDFlags cfg.linkDirs).value
}
, prelude.mkPy3Path cfg.linkDirs
, prelude.libPath cfg
, prelude.mkCFlags cfg
, prelude.mkPkgConfigVar cfg.linkDirs
]
# prelude.defaultPath cfg
)
, procDir = Some "build"
}
]
let symlinkGio =
λ(h : Text)
prelude.symlink "include/glib-2.0/gio/${h}" "include/gio/${h}"
let symlinkGunix =
λ(h : Text)
prelude.symlink
"include/gio-unix-2.0/gio/${h}"
"include/gio/${h}"
in prelude.simplePackage
{ name = "glib", version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/gnome/sources/glib/${versionString}/glib-${fullVersion}.tar.xz"
, configureCommand = glibConfigure
, buildCommand =
λ(cfg : types.BuildVars)
prelude.ninjaBuild cfg
# prelude.mkExes
[ "build/gobject/glib-mkenums"
, "build/gobject/glib-genmarshal"
, "build/gio/gdbus-2.0/codegen/gdbus-codegen"
]
, installCommand =
λ(cfg : types.BuildVars)
prelude.ninjaInstallWithPkgConfig
( prelude.mesonMoves
[ "glib-2.0.pc"
, "gobject-2.0.pc"
, "gio-2.0.pc"
, "gio-unix-2.0.pc"
, "gmodule-no-export-2.0.pc"
, "gmodule-export-2.0.pc"
, "gmodule-2.0.pc"
, "gthread-2.0.pc"
]
)
cfg
# [ prelude.symlink "include/glib-2.0/glib" "include/glib"
, prelude.symlink
"include/glib-2.0/gobject"
"include/gobject"
, prelude.symlink
"include/glib-2.0/glib.h"
"include/glib.h"
, prelude.symlink
"include/glib-2.0/glib-object.h"
"include/glib-object.h"
, prelude.symlink
"include/glib-2.0/glib-unix.h"
"include/glib-unix.h"
, prelude.symlink
"include/glib-2.0/gmodule.h"
"include/gmodule.h"
, symlinkGio "gaction.h"
, symlinkGio "gactiongroup.h"
, symlinkGio "gactiongroupexporter.h"
, symlinkGio "gactionmap.h"
, symlinkGio "gappinfo.h"
, symlinkGio "gapplication.h"
, symlinkGio "gapplicationcommandline.h"
, symlinkGio "gasyncinitable.h"
, symlinkGio "gasyncresult.h"
, symlinkGio "gbufferedinputstream.h"
, symlinkGio "gbufferedoutputstream.h"
, symlinkGio "gbytesicon.h"
, symlinkGio "gcancellable.h"
, symlinkGio "gcharsetconverter.h"
, symlinkGio "gcontenttype.h"
, symlinkGio "gconverter.h"
, symlinkGio "gconverterinputstream.h"
, symlinkGio "gconverteroutputstream.h"
, symlinkGio "gcredentials.h"
, symlinkGio "gdatagrambased.h"
, symlinkGio "gdatainputstream.h"
, symlinkGio "gdataoutputstream.h"
, symlinkGio "gdbusactiongroup.h"
, symlinkGio "gdbusaddress.h"
, symlinkGio "gdbusauthobserver.h"
, symlinkGio "gdbusconnection.h"
, symlinkGio "gdbuserror.h"
, symlinkGio "gdbusinterface.h"
, symlinkGio "gdbusinterfaceskeleton.h"
, symlinkGio "gdbusintrospection.h"
, symlinkGio "gdbusmenumodel.h"
, symlinkGio "gdbusmessage.h"
, symlinkGio "gdbusmethodinvocation.h"
, symlinkGio "gdbusnameowning.h"
, symlinkGio "gdbusnamewatching.h"
, symlinkGio "gdbusobject.h"
, symlinkGio "gdbusobjectmanager.h"
, symlinkGio "gdbusobjectmanagerclient.h"
, symlinkGio "gdbusobjectmanagerserver.h"
, symlinkGio "gdbusobjectproxy.h"
, symlinkGio "gdbusobjectskeleton.h"
, symlinkGio "gdbusproxy.h"
, symlinkGio "gdbusserver.h"
, symlinkGio "gdbusutils.h"
, symlinkGio "gdrive.h"
, symlinkGio "gdtlsclientconnection.h"
, symlinkGio "gdtlsconnection.h"
, symlinkGio "gdtlsserverconnection.h"
, symlinkGio "gemblem.h"
, symlinkGio "gemblemedicon.h"
, symlinkGio "gfile.h"
, symlinkGio "gfileattribute.h"
, symlinkGio "gfileenumerator.h"
, symlinkGio "gfileicon.h"
, symlinkGio "gfileinfo.h"
, symlinkGio "gfileinputstream.h"
, symlinkGio "gfileiostream.h"
, symlinkGio "gfilemonitor.h"
, symlinkGio "gfilenamecompleter.h"
, symlinkGio "gfileoutputstream.h"
, symlinkGio "gfilterinputstream.h"
, symlinkGio "gfilteroutputstream.h"
, symlinkGio "gicon.h"
, symlinkGio "ginetaddress.h"
, symlinkGio "ginetaddressmask.h"
, symlinkGio "ginetsocketaddress.h"
, symlinkGio "ginitable.h"
, symlinkGio "ginputstream.h"
, symlinkGio "gio-autocleanups.h"
, symlinkGio "gio.h"
, symlinkGio "gioenums.h"
, symlinkGio "gioenumtypes.h"
, symlinkGio "gioerror.h"
, symlinkGio "giomodule.h"
, symlinkGio "gioscheduler.h"
, symlinkGio "giostream.h"
, symlinkGio "giotypes.h"
, symlinkGio "glistmodel.h"
, symlinkGio "gliststore.h"
, symlinkGio "gloadableicon.h"
, symlinkGio "gmemoryinputstream.h"
, symlinkGio "gmemoryoutputstream.h"
, symlinkGio "gmenu.h"
, symlinkGio "gmenuexporter.h"
, symlinkGio "gmenumodel.h"
, symlinkGio "gmount.h"
, symlinkGio "gmountoperation.h"
, symlinkGio "gnativevolumemonitor.h"
, symlinkGio "gnetworkaddress.h"
, symlinkGio "gnetworking.h"
, symlinkGio "gnetworkmonitor.h"
, symlinkGio "gnetworkservice.h"
, symlinkGio "gnotification.h"
, symlinkGio "goutputstream.h"
, symlinkGio "gpermission.h"
, symlinkGio "gpollableinputstream.h"
, symlinkGio "gpollableoutputstream.h"
, symlinkGio "gpollableutils.h"
, symlinkGio "gpropertyaction.h"
, symlinkGio "gproxy.h"
, symlinkGio "gproxyaddress.h"
, symlinkGio "gproxyaddressenumerator.h"
, symlinkGio "gproxyresolver.h"
, symlinkGio "gremoteactiongroup.h"
, symlinkGio "gresolver.h"
, symlinkGio "gresource.h"
, symlinkGio "gseekable.h"
, symlinkGio "gsettings.h"
, symlinkGio "gsettingsbackend.h"
, symlinkGio "gsettingsschema.h"
, symlinkGio "gsimpleaction.h"
, symlinkGio "gsimpleactiongroup.h"
, symlinkGio "gsimpleasyncresult.h"
, symlinkGio "gsimpleiostream.h"
, symlinkGio "gsimplepermission.h"
, symlinkGio "gsimpleproxyresolver.h"
, symlinkGio "gsocket.h"
, symlinkGio "gsocketaddress.h"
, symlinkGio "gsocketaddressenumerator.h"
, symlinkGio "gsocketclient.h"
, symlinkGio "gsocketconnectable.h"
, symlinkGio "gsocketconnection.h"
, symlinkGio "gsocketcontrolmessage.h"
, symlinkGio "gsocketlistener.h"
, symlinkGio "gsocketservice.h"
, symlinkGio "gsrvtarget.h"
, symlinkGio "gsubprocess.h"
, symlinkGio "gsubprocesslauncher.h"
, symlinkGio "gtask.h"
, symlinkGio "gtcpconnection.h"
, symlinkGio "gtcpwrapperconnection.h"
, symlinkGio "gtestdbus.h"
, symlinkGio "gthemedicon.h"
, symlinkGio "gthreadedsocketservice.h"
, symlinkGio "gtlsbackend.h"
, symlinkGio "gtlscertificate.h"
, symlinkGio "gtlsclientconnection.h"
, symlinkGio "gtlsconnection.h"
, symlinkGio "gtlsdatabase.h"
, symlinkGio "gtlsfiledatabase.h"
, symlinkGio "gtlsinteraction.h"
, symlinkGio "gtlspassword.h"
, symlinkGio "gtlsserverconnection.h"
, symlinkGio "gvfs.h"
, symlinkGio "gvolume.h"
, symlinkGio "gvolumemonitor.h"
, symlinkGio "gzlibcompressor.h"
, symlinkGio "gzlibdecompressor.h"
, symlinkGunix "gdesktopappinfo.h"
, symlinkGunix "gfiledescriptorbased.h"
, symlinkGunix "gunixconnection.h"
, symlinkGunix "gunixcredentialsmessage.h"
, symlinkGunix "gunixfdlist.h"
, symlinkGunix "gunixfdmessage.h"
, symlinkGunix "gunixinputstream.h"
, symlinkGunix "gunixmounts.h"
, symlinkGunix "gunixoutputstream.h"
, symlinkGunix "gunixsocketaddress.h"
]
, pkgBuildDeps =
[ prelude.unbounded "meson", prelude.unbounded "ninja" ]
, pkgDeps =
[ prelude.unbounded "util-linux"
, prelude.unbounded "pcre"
, prelude.unbounded "libffi"
, prelude.unbounded "zlib"
, prelude.unbounded "dbus"
]
}
let atk =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.ninjaPackage
{ name = "atk", version = prelude.fullVersion x }
{ pkgUrl =
"https://ftp.gnome.org/pub/gnome/sources/atk/${versionString}/atk-${fullVersion}.tar.xz"
, pkgBuildDeps =
[ prelude.unbounded "gobject-introspection"
, prelude.unbounded "gettext"
]
, pkgDeps = [ prelude.unbounded "glib" ]
, installCommand =
prelude.ninjaInstallWithPkgConfig
[ { src = "build/meson-private/atk.pc"
, dest = "lib/pkgconfig/atk.pc"
}
]
}
let re2c =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "re2c", version = v }
{ pkgUrl =
"https://github.com/skvadrik/re2c/releases/download/${versionString}/re2c-${versionString}.tar.gz"
}
let chickenScheme =
λ(v : List Natural)
let versionString = prelude.showVersion v
let printChickenOS =
λ(os : types.OS)
merge
{ FreeBSD = "bsd"
, OpenBSD = "bsd"
, NetBSD = "bsd"
, Solaris = "solaris"
, Dragonfly = "bsd"
, Linux = "linux"
, Darwin = "macosx"
, Windows = "mingw"
, Haiku = "haiku"
, IOS = "ios"
, AIX = "aix"
, Hurd = "hurd"
, Android = "android"
, Redox = "error: no port for Redox OS"
, NoOs = "error: no port for no OS"
}
os
let chickenBuild =
λ(cfg : types.BuildVars)
let cc =
Optional/fold
types.TargetTriple
cfg.targetTriple
(List Text)
( λ(tgt : types.TargetTriple)
[ "C_COMPILER=${prelude.printTargetTriple tgt}-gcc"
]
)
([] : List Text)
let os = prelude.osCfg cfg
in [ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
cc
# [ "PLATFORM=${printChickenOS os}"
, "PREFIX=${cfg.installDir}"
]
}
)
, prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
cc
# [ "PLATFORM=${printChickenOS os}"
, "PREFIX=${cfg.installDir}"
, "install"
]
}
)
]
# prelude.symlinkBinaries
[ "bin/csc", "bin/chicken-install", "bin/csi" ]
in prelude.simplePackage { name = "chicken-scheme", version = v }
{ pkgUrl =
"https://code.call-cc.org/releases/${versionString}/chicken-${versionString}.tar.gz"
, configureCommand = prelude.doNothing
, buildCommand = chickenBuild
, installCommand = prelude.doNothing
, pkgSubdir = "chicken-${versionString}"
}
let xcb-proto =
λ(v : List Natural)
prelude.simplePackage { name = "xcb-proto", version = v }
{ pkgUrl =
"https://xorg.freedesktop.org/archive/individual/xcb/xcb-proto-${prelude.showVersion
v}.tar.bz2"
}
let libxcb =
λ(v : List Natural)
prelude.simplePackage { name = "libxcb", version = v }
{ pkgUrl =
"https://xorg.freedesktop.org/archive/individual/xcb/libxcb-${prelude.showVersion
v}.tar.bz2"
, pkgDeps =
[ prelude.lowerBound { name = "xcb-proto", lower = [ 1, 13 ] }
, prelude.unbounded "libXau"
, prelude.unbounded "libpthread-stubs"
, prelude.unbounded "libXdmcp"
]
}
let libpthread-stubs =
λ(v : List Natural)
prelude.simplePackage { name = "libpthread-stubs", version = v }
{ pkgUrl =
"https://www.x.org/archive/individual/xcb/libpthread-stubs-${prelude.showVersion
v}.tar.bz2"
}
let xorgConfigure =
prelude.configureWithFlags [ "--disable-malloc0returnsnull" ]
let mkXLib =
λ(name : Text)
λ(v : List Natural)
prelude.simplePackage { name = name, version = v }
{ pkgUrl =
"https://www.x.org/releases/individual/lib/${name}-${prelude.showVersion
v}.tar.bz2"
, configureCommand = xorgConfigure
, pkgBuildDeps = [ prelude.unbounded "pkg-config" ]
}
let mkXLibDeps =
λ(x : { name : Text, deps : List types.Dep })
λ(v : List Natural)
mkXLib x.name v { pkgDeps = x.deps }
let libXdmcp =
mkXLibDeps { name = "libXdmcp", deps = [ prelude.unbounded "xproto" ] }
let libXau =
mkXLibDeps { name = "libXau", deps = [ prelude.unbounded "xproto" ] }
let mkXUtil =
λ(name : Text)
λ(v : List Natural)
prelude.simplePackage { name = name, version = v }
{ pkgUrl =
"https://www.x.org/releases/individual/util/${name}-${prelude.showVersion
v}.tar.bz2"
}
let libXrender =
mkXLibDeps
{ name = "libXrender"
, deps =
[ prelude.unbounded "xproto"
, prelude.unbounded "renderproto"
, prelude.unbounded "libX11"
]
}
let util-macros = mkXUtil "util-macros"
let libXft =
mkXLibDeps
{ name = "libXft"
, deps =
[ prelude.unbounded "freetype"
, prelude.unbounded "fontconfig"
, prelude.unbounded "libXrender"
, prelude.unbounded "libX11"
]
}
let kbproto = mkXProto "kbproto"
let libX11 =
mkXLibDeps
{ name = "libX11"
, deps =
[ prelude.unbounded "libxcb"
, prelude.unbounded "kbproto"
, prelude.unbounded "xextproto"
, prelude.unbounded "inputproto"
, prelude.unbounded "xtrans"
]
}
let inputproto = mkXProto "inputproto"
let xineramaproto =
mkXProtoWithPatch
"xineramaproto"
./patches/xineramaproto.patch sha256:cc2dec3895d71256bfb878ab420bb63ad6708e17a1785805473760bb9d98a310 as Text
let xtrans = mkXLib "xtrans"
let libXrandr =
mkXLibDeps
{ name = "libXrandr"
, deps =
[ prelude.unbounded "util-macros"
, prelude.unbounded "libXext"
, prelude.unbounded "libXrender"
, prelude.unbounded "libX11"
, prelude.unbounded "randrproto"
]
}
let libXinerama =
mkXLibDeps
{ name = "libXinerama"
, deps =
[ prelude.unbounded "util-macros"
, prelude.unbounded "libX11"
, prelude.unbounded "libXext"
, prelude.unbounded "xineramaproto"
]
}
let libXext =
mkXLibDeps
{ name = "libXext"
, deps =
[ prelude.lowerBound { name = "xextproto", lower = [ 7, 1, 99 ] }
, prelude.lowerBound { name = "xproto", lower = [ 7, 0, 13 ] }
, prelude.lowerBound { name = "libX11", lower = [ 1, 6 ] }
]
}
let xextproto =
mkXProtoWithPatch
"xextproto"
./patches/xextproto.patch sha256:67185f1122233556a40a3d3df5a4967aca8533be62112f3c5e393308b70f3217 as Text
let fixesproto = mkXProto "fixesproto"
let damageproto = mkXProto "damageproto"
let libXScrnSaver =
λ(v : List Natural)
mkXLib "libXScrnSaver" v
{ pkgDeps =
[ prelude.unbounded "util-macros"
, prelude.unbounded "libXext"
, prelude.unbounded "scrnsaverproto"
]
}
let bzip2 =
let cc = prelude.mkCCArg
in λ(v : List Natural)
let versionString = prelude.showVersion v
let bzipInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
cc cfg
# [ "PREFIX=${cfg.installDir}"
, "install"
, "-j${Natural/show cfg.cpus}"
]
}
)
, prelude.copyFile
"libbz2.so.${versionString}"
"lib/libbz2.so.${versionString}"
, prelude.symlink
"lib/libbz2.so.${versionString}"
"lib/libbz2.so.1.0"
, prelude.symlink
"lib/libbz2.so.${versionString}"
"lib/libbz2.so"
, prelude.symlinkBinary "bin/bzip2"
, prelude.symlinkBinary "bin/bzip2recover"
]
let bzipShared =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
cc cfg # [ "-f", "Makefile-libbz2_so" ]
}
)
]
in prelude.simplePackage { name = "bzip2", version = v }
{ pkgUrl =
"https://www.sourceware.org/pub/bzip2/bzip2-${versionString}.tar.gz"
, configureCommand = prelude.doNothing
, buildCommand = bzipShared
, installCommand = bzipInstall
}
let expat =
λ(v : List Natural)
prelude.simplePackage { name = "expat", version = v }
{ pkgUrl =
"https://github.com/libexpat/libexpat/releases/download/R_${prelude.underscoreVersion
v}/expat-${prelude.showVersion
v}.tar.bz2"
}
let gperf =
λ(v : List Natural)
prelude.makeGnuExe { name = "gperf", version = v }
{ pkgUrl =
"http://ftp.gnu.org/pub/gnu/gperf/gperf-${prelude.showVersion
v}.tar.gz"
}
let coreutils =
λ(v : List Natural)
prelude.makeGnuExe { name = "coreutils", version = v }
{ installCommand =
prelude.installWithBinaries
[ "bin/install"
, "bin/chmod"
, "bin/rm"
, "bin/cp"
, "bin/ln"
, "bin/mkdir"
, "bin/test"
, "bin/od"
, "bin/readlink"
]
}
let libsepol =
let cc = prelude.mkCCArg
let sepolInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
cc cfg
# [ "PREFIX=${cfg.installDir}"
, "SHLIBDIR=${cfg.installDir}/lib"
, "CFLAGS=-Wno-error -O2"
, "install"
, "-j${Natural/show cfg.cpus}"
]
, environment = Some
( prelude.defaultPath cfg
# [ prelude.mkLDFlags cfg.linkDirs
, prelude.mkCFlags cfg
, prelude.mkPkgConfigVar cfg.linkDirs
]
)
}
)
]
in λ(v : List Natural)
prelude.simplePackage { name = "libsepol", version = v }
{ pkgUrl =
"https://github.com/SELinuxProject/selinux/releases/download/20191204/libsepol-${prelude.showVersion
v}.tar.gz"
, configureCommand = prelude.doNothing
, buildCommand = prelude.doNothing
, installCommand = sepolInstall
, pkgBuildDeps = [ prelude.unbounded "flex" ]
}
let libselinux =
let cc = prelude.mkCCArg
let selinuxInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
cc cfg
# [ "PREFIX=${cfg.installDir}"
, "SHLIBDIR=${cfg.installDir}/lib"
, "EXTRA_CFLAGS=-Wno-error -lpcre "
++ (prelude.mkCFlags cfg).value
, "install"
, "-j${Natural/show cfg.cpus}"
]
, environment = Some
( prelude.defaultPath cfg
# [ prelude.mkLDFlags cfg.linkDirs
, prelude.mkCFlags cfg
, prelude.mkPkgConfigVar cfg.linkDirs
, prelude.libPath cfg
]
)
}
)
]
in λ(v : List Natural)
prelude.simplePackage { name = "libselinux", version = v }
{ pkgUrl =
"https://github.com/SELinuxProject/selinux/releases/download/20191204/libselinux-${prelude.showVersion
v}.tar.gz"
, configureCommand = prelude.doNothing
, buildCommand = prelude.doNothing
, installCommand = selinuxInstall
, pkgDeps =
[ prelude.unbounded "pcre", prelude.unbounded "libsepol" ]
, pkgBuildDeps = [ prelude.unbounded "pkg-config" ]
}
let libXtst =
mkXLibDeps
{ name = "libXtst"
, deps = [ prelude.unbounded "libXi", prelude.unbounded "recordproto" ]
}
let libXi =
mkXLibDeps
{ name = "libXi"
, deps = [ prelude.unbounded "libXext", prelude.unbounded "libXfixes" ]
}
let mkGnomeNinja =
λ(name : Text)
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.ninjaPackage
{ name = name, version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/gnome/sources/${name}/${versionString}/${name}-${fullVersion}.tar.xz"
}
let at-spi-core =
λ(x : { version : List Natural, patch : Natural })
mkGnomeNinja "at-spi2-core" x
{ pkgDeps = [ prelude.unbounded "libXtst", prelude.unbounded "glib" ]
, installCommand =
prelude.ninjaInstallWithPkgConfig
[ { src = "build/meson-private/atspi-2.pc"
, dest = "lib/pkgconfig/atspi-2.pc"
}
]
}
let at-spi-atk =
λ(x : { version : List Natural, patch : Natural })
mkGnomeNinja "at-spi2-atk" x
{ pkgDeps =
[ prelude.lowerBound { name = "at-spi2-core", lower = [ 2, 32, 2 ] }
, prelude.lowerBound { name = "atk", lower = [ 2, 29, 2 ] }
, prelude.unbounded "libxml2"
]
, installCommand =
prelude.ninjaInstallWithPkgConfig
(prelude.mesonMoves [ "atk-bridge-2.0.pc" ])
}
let libdrm =
λ(v : List Natural)
prelude.ninjaPackage { name = "libdrm", version = v }
{ pkgUrl =
"https://dri.freedesktop.org/libdrm/libdrm-${prelude.showVersion
v}.tar.bz2"
, pkgDeps =
[ prelude.unbounded "libpciaccess", prelude.unbounded "cairo" ]
, installCommand =
prelude.ninjaInstallWithPkgConfig
( prelude.mesonMoves
[ "libdrm.pc"
, "libdrm_amdgpu.pc"
, "libdrm_intel.pc"
, "libdrm_nouveau.pc"
, "libdrm_radeon.pc"
, "libkms.pc"
]
)
}
let libpciaccess = mkXLib "libpciaccess"
let markupSafe =
λ(v : List Natural)
prelude.python3Package { name = "MarkupSafe", version = v }
{ pkgUrl =
"https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-${prelude.showVersion
v}.tar.gz"
}
let mako =
λ(v : List Natural)
prelude.python3Package { name = "Mako", version = v }
{ pkgUrl =
"https://files.pythonhosted.org/packages/source/M/Mako/Mako-${prelude.showVersion
v}.tar.gz"
}
let elfutils =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "elfutils", version = v }
{ pkgUrl =
"https://sourceware.org/ftp/elfutils/${versionString}/elfutils-${versionString}.tar.bz2"
}
let mkGnomeSimple =
λ(name : Text)
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.simplePackage
{ name = name, version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/gnome/sources/${name}/${versionString}/${name}-${fullVersion}.tar.xz"
}
let gtk3 =
let mkLDFlagsGtk =
λ(linkDirs : List Text)
concatMapSep " " Text (λ(dir : Text) "-L${dir}") linkDirs
let gtkEnv =
λ(cfg : types.BuildVars)
prelude.defaultPath cfg
# [ { var = "LDFLAGS"
, value = mkLDFlagsGtk cfg.linkDirs ++ " -lpcre -lfribidi"
}
, prelude.mkPkgConfigVar cfg.linkDirs
, prelude.mkLDPreload cfg.preloadLibs
, prelude.mkXdgDataDirs cfg.shareDirs
, prelude.mkCFlags cfg
]
let gtkConfig =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "./configure"
, arguments = [ "--prefix=${cfg.installDir}" ]
, environment = Some (gtkEnv cfg)
}
)
]
in λ(x : { version : List Natural, patch : Natural })
mkGnomeSimple "gtk+" x
{ pkgName = "gtk3"
, configureCommand = gtkConfig
, buildCommand =
λ(cfg : types.BuildVars) prelude.buildWith (gtkEnv cfg) cfg
, pkgDeps =
[ prelude.lowerBound { name = "pango", lower = [ 1, 41, 0 ] }
, prelude.unbounded "at-spi2-atk"
, prelude.lowerBound { name = "atk", lower = [ 2, 15, 1 ] }
, prelude.lowerBound
{ name = "gdk-pixbuf", lower = [ 2, 30, 0 ] }
, prelude.unbounded "libXft"
, prelude.lowerBound { name = "libepoxy", lower = [ 1, 4 ] }
, prelude.unbounded "libXi"
]
, pkgBuildDeps = [ prelude.unbounded "binutils" ]
}
let graphviz =
λ(v : List Natural)
prelude.simplePackage { name = "graphviz", version = v }
{ pkgUrl =
"https://graphviz.gitlab.io/pub/graphviz/stable/SOURCES/graphviz.tar.gz"
, configureCommand = prelude.configureMkExes [ "iffe" ]
, pkgDeps = [ prelude.unbounded "perl" ]
, installCommand = prelude.installWithBinaries [ "bin/dot" ]
}
let wayland =
λ(v : List Natural)
prelude.simplePackage { name = "wayland", version = v }
{ pkgUrl =
"https://wayland.freedesktop.org/releases/wayland-${prelude.showVersion
v}.tar.xz"
, pkgDeps = [ prelude.unbounded "libxml2" ]
, configureCommand =
prelude.configureWithFlags [ "--disable-documentation" ]
}
let swig =
λ(v : List Natural)
prelude.simplePackage { name = "swig", version = v }
{ pkgUrl =
"https://downloads.sourceforge.net/swig/swig-${prelude.showVersion
v}.tar.gz"
, configureCommand =
prelude.configureMkExes [ "Tools/config/install-sh" ]
, installCommand = prelude.installWithBinaries [ "bin/swig" ]
}
let lmdb =
let cc = prelude.mkCCArg
let ar =
λ(cfg : types.BuildVars)
Optional/fold
types.TargetTriple
cfg.targetTriple
(List Text)
( λ(tgt : types.TargetTriple)
[ "AR=${prelude.printTargetTriple tgt}-ar" ]
)
([] : List Text)
let lmdbInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = "make"
, arguments =
cc cfg
# ar cfg
# [ "prefix=${cfg.installDir}"
, "install"
, "-j${Natural/show cfg.cpus}"
]
, procDir = Some "libraries/liblmdb"
}
)
]
in λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "lmdb", version = v }
{ pkgUrl =
"https://github.com/LMDB/lmdb/archive/LMDB_${versionString}.tar.gz"
, pkgSubdir = "lmdb-LMDB_${versionString}"
, configureCommand = prelude.doNothing
, buildCommand = prelude.doNothing
, installCommand = lmdbInstall
}
let gsl =
λ(v : List Natural)
prelude.simplePackage { name = "gsl", version = v }
{ pkgUrl =
"http://mirror.keystealth.org/gnu/gsl/gsl-${prelude.showVersion
v}.tar.gz"
}
let postgresql =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "postgresql", version = v }
{ pkgUrl =
"https://ftp.postgresql.org/pub/source/v${versionString}/postgresql-${versionString}.tar.bz2"
, configureCommand =
prelude.configureWithFlags [ "--without-readline" ]
, installCommand = prelude.installWithBinaries [ "bin/pg_config" ]
, pkgDeps = [ prelude.unbounded "zlib" ]
}
let sqlite =
λ(x : { version : List Natural })
prelude.simplePackage { name = "sqlite", version = x.version }
{ pkgUrl =
"https://www.sqlite.org/2019/sqlite-autoconf-3300100.tar.gz"
, pkgSubdir = "sqlite-autoconf-3300100"
}
let ragel =
λ(v : List Natural)
prelude.simplePackage { name = "ragel", version = v }
{ pkgUrl =
"http://www.colm.net/files/ragel/ragel-${prelude.showVersion
v}.tar.gz"
, installCommand = prelude.installWithBinaries [ "bin/ragel" ]
}
let nano =
λ(v : List Natural)
prelude.makeGnuExe { name = "nano", version = v }
{ pkgDeps = [ prelude.unbounded "ncurses" ] }
let libarchive =
λ(v : List Natural)
prelude.simplePackage { name = "libarchive", version = v }
{ pkgUrl =
"https://www.libarchive.org/downloads/libarchive-${prelude.showVersion
v}.tar.gz"
, pkgDeps =
[ prelude.unbounded "xz"
, prelude.unbounded "bzip2"
, prelude.unbounded "zlib"
]
}
let pygobject =
λ(x : { version : List Natural, patch : Natural })
mkGnomeSimple "pygobject" x
{ pkgDeps = [ prelude.unbounded "glib" ]
, configureCommand = prelude.preloadCfg
}
let pygtk =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in mkGnomeSimple "pygtk" x
{ pkgUrl =
"http://ftp.gnome.org/pub/gnome/sources/pygtk/${versionString}/pygtk-${fullVersion}.tar.bz2"
, configureCommand = prelude.preloadCfg
, pkgDeps =
[ prelude.lowerBound { name = "glib", lower = [ 2, 8, 0 ] }
, prelude.lowerBound
{ name = "pygobject", lower = [ 2, 21, 3 ] }
, prelude.unbounded "python2"
]
}
let libglade =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.simplePackage
{ name = "libglade", version = prelude.fullVersion x }
{ pkgUrl =
"http://ftp.gnome.org/pub/gnome/sources/libglade/${versionString}/libglade-${fullVersion}.tar.bz2"
, pkgDeps =
[ prelude.lowerBound { name = "libxml2", lower = [ 2, 4, 10 ] }
, prelude.lowerBound { name = "gtk2", lower = [ 2, 5, 0 ] }
]
, configureCommand = prelude.configureLinkExtraLibs [ "fribidi" ]
}
let scour =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.python3Package { name = "scour", version = v }
{ pkgUrl =
"https://github.com/scour-project/scour/archive/v${versionString}/scour-${versionString}.tar.gz"
, installCommand = prelude.installWithPy3Wrappers [ "scour" ]
}
let libXpm =
λ(v : List Natural)
mkXLib "libXpm" v
{ pkgDeps = [ prelude.unbounded "libXext", prelude.unbounded "libXt" ]
, pkgBuildDeps = [ prelude.unbounded "gettext" ]
}
let libXt =
mkXLibDeps
{ name = "libXt"
, deps =
[ prelude.unbounded "libICE"
, prelude.unbounded "libSM"
, prelude.unbounded "libX11"
, prelude.unbounded "kbproto"
]
}
let libICE =
mkXLibDeps
{ name = "libICE"
, deps = [ prelude.unbounded "xproto", prelude.unbounded "xtrans" ]
}
let libSM =
mkXLibDeps
{ name = "libSM"
, deps = [ prelude.unbounded "libICE", prelude.unbounded "util-linux" ]
}
let libXaw =
mkXLibDeps
{ name = "libXaw"
, deps = [ prelude.unbounded "libXmu", prelude.unbounded "libXpm" ]
}
let libXaw3d =
mkXLibDeps
{ name = "libXaw3d"
, deps =
[ prelude.unbounded "libX11"
, prelude.unbounded "libXt"
, prelude.unbounded "libXmu"
, prelude.unbounded "libXext"
]
}
let libXmu =
mkXLibDeps
{ name = "libXmu"
, deps =
[ prelude.unbounded "util-macros"
, prelude.unbounded "libXt"
, prelude.unbounded "libXext"
]
}
let libotf =
λ(v : List Natural)
prelude.simplePackage { name = "libotf", version = v }
{ pkgUrl =
"http://download.savannah.gnu.org/releases/m17n/libotf-${prelude.showVersion
v}.tar.gz"
, pkgDeps = [ prelude.unbounded "freetype" ]
}
let m17n =
λ(v : List Natural)
prelude.simplePackage { name = "m17n-lib", version = v }
{ pkgUrl =
"http://download.savannah.gnu.org/releases/m17n/m17n-lib-${prelude.showVersion
v}.tar.gz"
, buildCommand =
λ(cfg : types.BuildVars)
prelude.generalBuild
prelude.singleThreaded
(prelude.buildEnv cfg)
cfg
, pkgDeps = [ prelude.unbounded "libXt" ]
, pkgBuildDeps = [ prelude.unbounded "binutils" ]
}
let mkGimpPackage =
λ(name : Text)
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.simplePackage
{ name = name, version = prelude.fullVersion x }
{ pkgUrl =
"https://download.gimp.org/pub/${name}/${versionString}/${name}-${fullVersion}.tar.bz2"
}
let babl =
λ(x : { version : List Natural, patch : Natural })
let versionString = prelude.showVersion x.version
let fullVersion = versionString ++ "." ++ Natural/show x.patch
in prelude.simplePackage
{ name = "babl", version = prelude.fullVersion x }
{ pkgUrl =
"https://download.gimp.org/pub/babl/${versionString}/babl-${fullVersion}.tar.xz"
, pkgBuildDeps =
[ prelude.unbounded "autoconf"
, prelude.unbounded "automake"
, prelude.unbounded "libtool"
, prelude.unbounded "pkg-config"
]
, pkgDeps = [ prelude.unbounded "lcms2" ]
, configureCommand = prelude.autogenConfigure
}
let gegl =
λ(x : { version : List Natural, patch : Natural })
mkGimpPackage "gegl" x
{ pkgDeps =
[ prelude.lowerBound { name = "babl", lower = [ 0, 1, 58 ] }
, prelude.lowerBound { name = "glib", lower = [ 2, 44, 0 ] }
, prelude.unbounded "json-glib"
]
, configureCommand = prelude.preloadCfg
}
let libexif =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libexif", version = v }
{ pkgUrl =
"https://nchc.dl.sourceforge.net/project/libexif/libexif/${versionString}/libexif-${versionString}.tar.bz2"
}
let json-glib =
λ(x : { version : List Natural, patch : Natural })
mkGnomeNinja "json-glib" x
{ pkgDeps =
[ prelude.unbounded "glib"
, prelude.unbounded "libjpeg-turbo"
, prelude.unbounded "libpng"
]
, pkgBuildDeps = [ prelude.unbounded "gettext" ]
, installCommand =
prelude.ninjaInstallWithPkgConfig
(prelude.mesonMoves [ "json-glib-1.0.pc" ])
}
let lcms2 =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "lcms2", version = v }
{ pkgUrl =
"https://github.com/mm2/Little-CMS/archive/lcms${versionString}.tar.gz"
, pkgSubdir = "Little-CMS-lcms${versionString}"
}
let libtiff =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libtiff", version = v }
{ pkgUrl =
"http://download.osgeo.org/libtiff/tiff-${versionString}.tar.gz"
, pkgSubdir = "tiff-${versionString}"
}
let libmypaint =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libmypaint", version = v }
{ pkgUrl =
"https://github.com/mypaint/libmypaint/releases/download/v${versionString}/libmypaint-${versionString}.tar.xz"
, pkgDeps = [ prelude.unbounded "json-c" ]
, pkgBuildDeps =
[ prelude.unbounded "intltool", prelude.unbounded "gettext" ]
}
let json-c =
λ(x : { version : List Natural, dateStr : Text })
let versionString = "${prelude.showVersion x.version}-${x.dateStr}"
in prelude.simplePackage { name = "json-c", version = x.version }
{ pkgUrl =
"https://github.com/json-c/json-c/archive/json-c-${versionString}.tar.gz"
, pkgSubdir = "json-c-json-c-${versionString}"
}
let libopenjpeg =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libopenjpeg", version = v }
prelude.cmakePackage
{ pkgUrl =
"https://github.com/uclouvain/openjpeg/archive/v${versionString}.tar.gz"
, pkgSubdir = "openjpeg-${versionString}"
, pkgDeps = [ prelude.unbounded "zlib" ]
, pkgBuildDeps =
[ prelude.unbounded "make", prelude.unbounded "cmake" ]
, installCommand =
λ(cfg : types.BuildVars)
prelude.cmakeInstall cfg
# [ prelude.symlink
"lib/openjpeg-2.3/OpenJPEGConfig.cmake"
"lib/OpenJPEGConfig.cmake"
]
}
let libevent =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libevent", version = v }
{ pkgUrl =
"https://github.com/libevent/libevent/releases/download/release-${versionString}-stable/libevent-${versionString}-stable.tar.gz"
, pkgSubdir = "libevent-${versionString}-stable"
, pkgDeps = [ prelude.unbounded "openssl" ]
}
let memcached =
λ(v : List Natural)
prelude.simplePackage { name = "memcached", version = v }
{ pkgUrl =
"https://memcached.org/files/memcached-${prelude.showVersion
v}.tar.gz"
, pkgDeps = [ prelude.unbounded "libevent" ]
}
let motif =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "motif", version = v }
{ pkgUrl =
"https://iweb.dl.sourceforge.net/project/motif/Motif%20${versionString}%20Source%20Code/motif-${versionString}.tar.gz"
, pkgDeps =
[ prelude.unbounded "libXft"
, prelude.unbounded "libpng"
, prelude.unbounded "freetype"
]
}
let libjpeg =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "libjpeg", version = v }
{ pkgUrl =
"http://www.ijg.org/files/jpegsrc.v${versionString}c.tar.gz"
, pkgSubdir = "jpeg-${versionString}c"
}
let feh =
let cc = prelude.mkCCArg
let fehMake =
λ(cfg : types.BuildVars) { program = prelude.makeExe cfg.buildOS }
let fehBuild =
λ(v : List Natural)
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
fehMake cfg
{ arguments = [ "feh.1" ], procDir = Some "man" }
)
, prelude.call
( prelude.defaultCall
fehMake cfg
{ arguments =
cc cfg
# [ "CFLAGS=${( prelude.mkCFlags cfg
).value} -DPACKAGE=\\\"feh\\\" -DPREFIX=\\\"${cfg.installDir}\\\" -DVERSION=\\\"${prelude.showVersion
v}\\\" ${( prelude.mkLDFlags
cfg.linkDirs
).value}"
, "feh"
]
, procDir = Some "src"
}
)
, prelude.call
( prelude.defaultCall
fehMake cfg
{ arguments = [ "feh.desktop" ]
, procDir = Some "share/applications"
}
)
]
let fehInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
[ "CFLAGS=${(prelude.mkCFlags cfg).value}"
, "-j${Natural/show cfg.cpus}"
, "PREFIX=${cfg.installDir}"
, "install"
]
}
)
]
# prelude.mkLDPathWrapper cfg "feh"
in λ(v : List Natural)
prelude.simplePackage { name = "feh", version = v }
{ pkgUrl =
"https://github.com/derf/feh/archive/${prelude.showVersion
v}.tar.gz"
, configureCommand = prelude.doNothing
, buildCommand = fehBuild v
, installCommand = fehInstall
, pkgBuildDeps = [ prelude.unbounded "sed" ]
, pkgDeps =
[ prelude.unbounded "imlib2"
, prelude.unbounded "libXt"
, prelude.unbounded "libXinerama"
, prelude.unbounded "curl"
]
}
let imlib2 =
λ(v : List Natural)
prelude.simplePackage { name = "imlib2", version = v }
{ pkgUrl =
"https://downloads.sourceforge.net/enlightenment/imlib2-${prelude.showVersion
v}.tar.bz2"
, pkgDeps =
[ prelude.unbounded "libXext"
, prelude.unbounded "freetype"
, prelude.unbounded "libjpeg"
, prelude.unbounded "libpng"
, prelude.unbounded "giflib"
]
}
let jemalloc =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "jemalloc", version = v }
{ pkgUrl =
"https://github.com/jemalloc/jemalloc/releases/download/${versionString}/jemalloc-${versionString}.tar.bz2"
, configureCommand =
prelude.configureMkExes
[ "include/jemalloc/internal/private_symbols.sh"
, "include/jemalloc/internal/public_namespace.sh"
, "include/jemalloc/internal/public_unnamespace.sh"
, "include/jemalloc/jemalloc_rename.sh"
, "include/jemalloc/jemalloc_mangle.sh"
, "include/jemalloc/jemalloc.sh"
]
}
let gperftools =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "gperftools", version = v }
{ pkgUrl =
"https://github.com/gperftools/gperftools/releases/download/gperftools-${versionString}/gperftools-${versionString}.tar.gz"
}
let openssh =
let opensshInstall =
λ(cfg : types.BuildVars)
[ prelude.call
( prelude.defaultCall
{ program = prelude.makeExe cfg.buildOS
, arguments =
[ "PRIVSEP_PATH=${cfg.installDir}/var"
, "install"
, "-j${Natural/show cfg.cpus}"
]
, environment = Some
( prelude.defaultPath cfg
# [ prelude.mkPkgConfigVar cfg.linkDirs
, prelude.libPath cfg
]
)
}
)
]
in λ(v : List Natural)
prelude.simplePackage { name = "openssh", version = v }
{ pkgUrl =
"https://mirrors.gigenet.com/pub/OpenBSD/OpenSSH/portable/openssh-${prelude.showVersion
v}p1.tar.gz"
, pkgSubdir = "openssh-${prelude.showVersion v}p1"
, installCommand = opensshInstall
, pkgDeps = [ prelude.unbounded "openssl" ]
}
let libxslt =
λ(v : List Natural)
prelude.simplePackage { name = "libxslt", version = v }
{ pkgUrl =
"http://xmlsoft.org/sources/libxslt-${prelude.showVersion
v}.tar.gz"
, pkgDeps = [ prelude.unbounded "libxml2" ]
}
let libepoxy =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.ninjaPackage { name = "libepoxy", version = v }
{ pkgUrl =
"https://github.com/anholt/libepoxy/releases/download/${versionString}/libepoxy-${versionString}.tar.xz"
, pkgDeps = [ prelude.unbounded "mesa" ]
, installCommand =
prelude.ninjaInstallWithPkgConfig
(prelude.mesonMoves [ "epoxy.pc" ])
}
let mesa =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "mesa", version = v }
{ pkgUrl =
"https://mesa.freedesktop.org/archive/mesa-${prelude.showVersion
v}.tar.xz"
, pkgDeps =
[ prelude.lowerBound { name = "libdrm", lower = [ 2, 4, 75 ] }
, prelude.unbounded "libXdamage"
, prelude.unbounded "libXfixes"
, prelude.unbounded "libXxf86vm"
, prelude.lowerBound { name = "libxshmfence", lower = [ 1, 1 ] }
, prelude.lowerBound { name = "glproto", lower = [ 1, 4, 14 ] }
, prelude.lowerBound { name = "dri2proto", lower = [ 2, 8 ] }
, prelude.unbounded "libXrandr"
]
, configureCommand =
prelude.configureWithFlags
[ "--enable-autotools"
, "--with-gallium-drivers=nouveau,swrast"
]
}
let libXdamage =
mkXLibDeps
{ name = "libXdamage"
, deps =
[ prelude.unbounded "libXfixes", prelude.unbounded "damageproto" ]
}
let libXfixes =
mkXLibDeps
{ name = "libXfixes"
, deps =
[ prelude.unbounded "xproto"
, prelude.unbounded "fixesproto"
, prelude.unbounded "xextproto"
, prelude.unbounded "libX11"
]
}
let libXxf86vm =
mkXLibDeps
{ name = "libXxf86vm"
, deps =
[ prelude.unbounded "xproto"
, prelude.unbounded "libX11"
, prelude.unbounded "xextproto"
, prelude.unbounded "libXext"
, prelude.unbounded "xf86vidmodeproto"
]
}
let libxshmfence =
mkXLibDeps
{ name = "libxshmfence", deps = [ prelude.unbounded "xproto" ] }
let gnome-doc-utils =
λ(x : { version : List Natural, patch : Natural })
mkGnomeSimple "gnome-doc-utils" x
{ pkgDeps =
[ prelude.lowerBound { name = "libxslt", lower = [ 1, 1, 8 ] }
, prelude.lowerBound { name = "libxml2", lower = [ 2, 6, 12 ] }
]
, pkgBuildDeps =
[ prelude.lowerBound { name = "intltool", lower = [ 0, 35, 0 ] }
, prelude.unbounded "gettext"
, prelude.unbounded "python2"
]
, configureCommand = prelude.configureMkExes [ "py-compile" ]
}
let itstool =
λ(v : List Natural)
prelude.simplePackage { name = "itstool", version = v }
{ pkgUrl =
"http://files.itstool.org/itstool/itstool-${prelude.showVersion
v}.tar.bz2"
, pkgDeps = [ prelude.unbounded "libxml2" ]
}
let gexiv2 =
λ(x : { version : List Natural, patch : Natural })
mkGnomeNinja "gexiv2" x
{ pkgDeps = [ prelude.unbounded "exiv2", prelude.unbounded "glib" ]
, installCommand =
prelude.ninjaInstallWithPkgConfig
(prelude.mesonMoves [ "gexiv2.pc" ])
}
let exiv2 =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.simplePackage { name = "exiv2", version = v }
prelude.cmakePackage
{ pkgUrl =
"http://www.exiv2.org/builds/exiv2-${versionString}-Source.tar.gz"
, pkgSubdir = "exiv2-${versionString}-Source"
}
let libtiff =
λ(v : List Natural)
let versionString = prelude.showVersion v
in prelude.ninjaPackage { name = "libtiff", version = v }
{ pkgUrl =
"https://download.osgeo.org/libtiff/tiff-${versionString}.tar.gz"
, pkgSubdir = "tiff-${versionString}"
, configureCommand = prelude.cmakeConfigureNinja
, pkgBuildDeps =
[ prelude.unbounded "cmake", prelude.unbounded "ninja" ]
}
let nspr =
λ(v : List Natural)
let versionString = prelude.showVersion v
let bitFlag =
λ(cfg : types.BuildVars)
if prelude.isX64 (prelude.archCfg cfg)
then [ "--enable-64bit" ]
else [] : List Text
in prelude.simplePackage { name = "nspr", version = v }
{ pkgUrl =
"https://archive.mozilla.org/pub/nspr/releases/v${versionString}/src/nspr-${versionString}.tar.gz"
, pkgSubdir = "nspr-${versionString}/nspr"
, configureCommand =
λ(cfg : types.BuildVars)
prelude.configureWithFlags (bitFlag cfg) cfg
}
let libthai =
λ(v : List Natural)
prelude.simplePackage { name = "libthai", version = v }
{ pkgUrl =
"https://linux.thai.net/pub/thailinux/software/libthai/libthai-${prelude.showVersion
v}.tar.xz"
, pkgDeps = [ prelude.unbounded "libdatrie" ]
}
let libdatrie =
λ(v : List Natural)
prelude.simplePackage { name = "libdatrie", version = v }
{ pkgUrl =
"https://linux.thai.net/pub/thailinux/software/libthai/libdatrie-${prelude.showVersion
v}.tar.xz"
}
let joe =
λ(v : List Natural)
prelude.simplePackage { name = "joe", version = v }
{ pkgUrl =
"https://downloads.sourceforge.net/joe-editor/joe-${prelude.showVersion
v}.tar.gz"
, installCommand = prelude.installWithBinaries [ "bin/joe" ]
}
let fossil =
λ(v : List Natural)
prelude.simplePackage { name = "fossil", version = v }
{ pkgUrl =
"https://fossil-scm.org/fossil/uv/fossil-src-${prelude.showVersion
v}.tar.gz"
, installCommand = prelude.installWithBinaries [ "bin/fossil" ]
, pkgDeps = [ prelude.unbounded "zlib", prelude.unbounded "openssl" ]
}
let libcroco =
λ(x : { version : List Natural, patch : Natural })
mkGnomeSimple "libcroco" x
{ pkgDeps =
[ prelude.lowerBound { name = "glib", lower = [ 2, 0 ] }
, prelude.lowerBound { name = "libxml2", lower = [ 2, 4, 23 ] }
]
}
let libsoup =
λ(x : { version : List Natural, patch : Natural })
let libsoupCfgFile =
''
option('gssapi',
type : 'boolean',
value : true,
description : 'Build with GSSAPI support'
)
option('krb5_config',
type : 'string',
description : 'Where to look for krb5-config, path points to krb5-config insta