Skip to content

Instantly share code, notes, and snippets.

@patrickod
Last active July 5, 2020 00:01
Show Gist options
  • Save patrickod/0cc3e6ac5751e2ec0ea576ebb8cfa241 to your computer and use it in GitHub Desktop.
Save patrickod/0cc3e6ac5751e2ec0ea576ebb8cfa241 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let
vfio-isolate = with python38Packages; buildPythonApplication rec {
name = "vfio-isolate";
version = "0.3.1";
src = pkgs.fetchFromGitHub {
owner = "spheenik";
repo = "${name}";
rev = "74efc1ec4902866b72dd8068b505cb0900b9dd85";
sha256 = "0ca50yvj3fcxj41bz3ajqmj8vhcmqy6akf6pn4vhmzkgvd4a2g2x";
};
propagatedBuildInputs = with pkgs.python38Packages; [ click psutil parsimonious ];
};
in mkShell {
name = "vfio-isolate";
buildInputs = with pkgs.python38Packages; [ vfio-isolate ];
shellHook = ''
echo "Build successful"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment