Skip to content

Instantly share code, notes, and snippets.

@KoviRobi
Last active April 1, 2020 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KoviRobi/1381abdfce8e87139e4d04cfef3d76be to your computer and use it in GitHub Desktop.
Save KoviRobi/1381abdfce8e87139e4d04cfef3d76be to your computer and use it in GitHub Desktop.
{ nixpkgs ? import <nixpkgs> {}
}:
with nixpkgs;
stdenv.mkDerivation {
name = "connectal";
version = "1.0.0";
buildInputs = [
bluespec
strace
gmp
(python.withPackages (p: with p; [ ply gevent ]))
];
BLUESPECDIR = let
bsc-contrib = stdenv.mkDerivation {
name = "bsc-contrib-unstable";
version = "2020-02-22";
src = fetchFromGitHub {
owner = "B-Lang-org";
repo = "bsc-contrib";
rev = "24f84b19ef1260f9171eef25945940c6cf030836";
sha256 = "1xfgwia3b34b9j74qjm5m1cd5hfi4vnw5kgn7l33glgxmqvigv28";
};
buildInputs = [ bluespec ];
makeFlags = [ "PREFIX=$(out)" ];
};
libraries = symlinkJoin {
name = "bluespec-libraries";
paths = [ bluespec bsc-contrib ];
};
in "${libraries}/lib";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment