Hi,
I’m trying to install httpstan from: Installation — httpstan 4.6.1 documentation
It involves both python and c++ code.
I’m trying to use a default.nix (that I can invoke with nix-shell) that I’ve scavenged from a previous working default.nix that built something else:
with import <nixpkgs> {};
(let
httpstan = pkgs.python37Packages.buildPythonPackage rec{
name = "httpstan-${version}";
version = "4.4.2";
src = fetchFromGitHub {
owner = "stan-dev";
repo = "httpstan";
rev = version;
sha256 = "1gjy5glz3qgrv33yyhpqhx3vgy8ff4p5m78p784kr8zlhxlbpy48";
};
doCheck = false;
buildInputs = [
curl
which
];
propagatedBuildInputs = [
curl
python37Packages.poetry
];
format = "other";
buildPhase = ''
echo "BEGIN-BUILD-THING"
which curl
#make
#curl
'';
installPhase = ''
#echo "BEGIN-INSTALL-THING"
#echo `pwd`
#export
#mkdir $out
#echo "END-INSTALL-THING"
'';
postFixup = ''
'';
};
in stdenv.mkDerivation {
name = "impurePythonEnv";
buildInputs = [
pkgs.curl
pkgs.which
httpstan
(python37.buildEnv.override {
ignoreCollisions = true;
extraLibs = [
];
})
];
})
The error I’m getting right now is:
/nix/store/sm7kk5n84vaisqvhk1yfsjqls50j8s0m-stdenv-linux/setup: line 1300: which: command not found
I realise there may be other ways of doing this - but I’m also keen to use this general layout because it will save me having to port a load of other nix code to some new format. Getting which
and curl
available will certainly be good progress from my perspective. As a last resort, I’d still be interested in alternative approaches, of course.
Thanks for any pointers,
Nawal.