librep: refactor
Now with strictDeps!
This commit is contained in:
parent
740431208e
commit
acf84a140f
|
@ -10,13 +10,13 @@
|
||||||
, texinfo
|
, texinfo
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "librep";
|
pname = "librep";
|
||||||
version = "0.92.7";
|
version = "0.92.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
|
url = "https://download.tuxfamily.org/librep/librep_${finalAttrs.version}.tar.xz";
|
||||||
sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
|
hash = "sha256-SKGWeax8BTCollfeGP/knFdZpf9w/IRJKLDl0AOVrK4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
|
||||||
pkg-config
|
pkg-config
|
||||||
texinfo
|
texinfo
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gdbm
|
gdbm
|
||||||
gmp
|
gmp
|
||||||
|
@ -31,12 +32,14 @@ stdenv.mkDerivation rec {
|
||||||
readline
|
readline
|
||||||
];
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
# ensure libsystem/ctype functions don't get duplicated when using clang
|
# ensure libsystem/ctype functions don't get duplicated when using clang
|
||||||
configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ];
|
configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ];
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
meta = with lib;{
|
meta = {
|
||||||
homepage = "http://sawfish.tuxfamily.org/";
|
homepage = "http://sawfish.tuxfamily.org/";
|
||||||
description = "Fast, lightweight, and versatile Lisp environment";
|
description = "Fast, lightweight, and versatile Lisp environment";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -44,9 +47,9 @@ stdenv.mkDerivation rec {
|
||||||
compiler, and a virtual machine. It can serve as an application extension
|
compiler, and a virtual machine. It can serve as an application extension
|
||||||
language but is also suitable for standalone scripts.
|
language but is also suitable for standalone scripts.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
maintainers = [ maintainers.AndersonTorres ];
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
# TODO: investigate fetchFromGithub
|
# TODO: investigate fetchFromGithub
|
||||||
|
|
Loading…
Reference in a new issue