diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/librep')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/librep/default.nix | 37 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/librep/setup-hook.sh | 5 |
2 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/librep/default.nix b/nixpkgs/pkgs/development/libraries/librep/default.nix new file mode 100644 index 000000000000..74c45f00adcf --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librep/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchurl +, pkg-config, autoreconfHook +, readline, texinfo +, gdbm, gmp, libffi }: + +with lib; + +stdenv.mkDerivation rec { + pname = "librep"; + version = "0.92.7"; + sourceName = "librep_${version}"; + + src = fetchurl { + url = "https://download.tuxfamily.org/librep/${sourceName}.tar.xz"; + sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8"; + }; + + nativeBuildInputs = [ autoreconfHook pkg-config ]; + buildInputs = [ readline texinfo ]; + propagatedBuildInputs = [ gdbm gmp libffi ]; + + setupHook = ./setup-hook.sh; + + meta = { + description = "Fast, lightweight, and versatile Lisp environment"; + longDescription = '' + librep is a Lisp system for UNIX, comprising an + interpreter, a byte-code compiler, and a virtual + machine. It can serve as an application extension language + but is also suitable for standalone scripts. + ''; + homepage = "http://sawfish.wikia.com"; + license = licenses.gpl2; + maintainers = [ maintainers.AndersonTorres ]; + }; +} +# TODO: investigate fetchFromGithub diff --git a/nixpkgs/pkgs/development/libraries/librep/setup-hook.sh b/nixpkgs/pkgs/development/libraries/librep/setup-hook.sh new file mode 100644 index 000000000000..4d875b693304 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/librep/setup-hook.sh @@ -0,0 +1,5 @@ +addRepDLLoadPath () { + addToSearchPath REP_DL_LOAD_PATH $1/lib/rep +} + +addEnvHooks "$hostOffset" addRepDLLoadPath |