3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/clpm/default.nix

54 lines
1,016 B
Nix
Raw Normal View History

2021-02-17 13:28:31 +00:00
{ lib
, stdenv
2021-01-11 22:08:42 +00:00
, fetchgit
, wrapLisp
, sbcl
, openssl
}:
stdenv.mkDerivation rec {
pname = "clpm";
2021-02-17 13:28:31 +00:00
version = "0.3.6";
2021-01-11 22:08:42 +00:00
src = fetchgit {
url = "https://gitlab.common-lisp.net/clpm/clpm";
rev = "v${version}";
fetchSubmodules = true;
2021-02-17 13:28:31 +00:00
sha256 = "04w46yhv31p4cfb84b6qvyfw7x5nx6lzyd4yzhd9x6qvb7p5kmfh";
2021-01-11 22:08:42 +00:00
};
buildInputs = [
(wrapLisp sbcl)
openssl
];
buildPhase = ''
2021-02-17 13:28:31 +00:00
runHook preBuild
2021-01-11 22:08:42 +00:00
ln -s ${openssl.out}/lib/libcrypto.so.* .
ln -s ${openssl.out}/lib/libssl.so.* .
common-lisp.sh --script scripts/build.lisp
2021-02-17 13:28:31 +00:00
runHook postBuild
2021-01-11 22:08:42 +00:00
'';
installPhase = ''
2021-02-17 13:28:31 +00:00
runHook preInstall
2021-01-11 22:08:42 +00:00
INSTALL_ROOT=$out sh install.sh
2021-02-17 13:28:31 +00:00
runHook postInstall
2021-01-11 22:08:42 +00:00
'';
# fixupPhase results in fatal error in SBCL, `Can't find sbcl.core`
dontFixup = true;
meta = with lib; {
2021-01-11 22:08:42 +00:00
description = "Common Lisp Package Manager";
homepage = "https://www.clpm.dev/";
license = licenses.bsd2;
maintainers = [ maintainers.petterstorvik ];
platforms = platforms.all;
};
}