anchor.diff:      homepage = "https://www.clpm.dev/";
       license = licenses.bsd2;
       maintainers = [ maintainers.petterstorvik ];
  -    platforms = platforms.all;
  +    platforms = [ "i686-linux" "x86_64-linux" ];
     };
   }
  
positive.code: , stdenv
  , fetchgit
  , wrapLisp
  , sbcl_2_0_9
  , openssl
  }:
  
  stdenv.mkDerivation rec {
    pname = "clpm";
    version = "0.3.6";
  
    src = fetchgit {
      url = "https://gitlab.common-lisp.net/clpm/clpm";
      rev = "v${version}";
      fetchSubmodules = true;
      sha256 = "04w46yhv31p4cfb84b6qvyfw7x5nx6lzyd4yzhd9x6qvb7p5kmfh";
    };
  
    buildInputs = [
      (wrapLisp sbcl_2_0_9)
      openssl
    ];
  
    buildPhase = ''
      runHook preBuild
  
      ln -s ${openssl.out}/lib/libcrypto*${stdenv.hostPlatform.extensions.sharedLibrary}* .
      ln -s ${openssl.out}/lib/libssl*${stdenv.hostPlatform.extensions.sharedLibrary}* .
      common-lisp.sh --script scripts/build.lisp
  
      runHook postBuild
    '';
  
negative.code:   installPhase = ''
      runHook preInstall
  
      cd build/release-staging/dynamic/clpm-${version}*/
      INSTALL_ROOT=$out/ bash install.sh
  
      runHook postInstall
    '';
  