Skip to content

Instantly share code, notes, and snippets.

@nixinator
Created February 4, 2022 11:39
Show Gist options
  • Save nixinator/08a9b9a64b96b406ee2701cc09858650 to your computer and use it in GitHub Desktop.
Save nixinator/08a9b9a64b96b406ee2701cc09858650 to your computer and use it in GitHub Desktop.
nix flake for build a single package from nixpkgs, this builds an unfree package.
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
};
outputs = { self, nixpkgs }:
let
myNixpkgs = import nixpkgs { config.allowUnfree = true; system = "x86_64-linux"; };
in
{
packages.x86_64-linux.cudaThing = myNixpkgs.python3Packages.tensorflowWithCuda;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment