Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created September 29, 2019 11:48
Show Gist options
  • Select an option

  • Save idontgetoutmuch/a0277e1975905ba8a17de093b9ececb6 to your computer and use it in GitHub Desktop.

Select an option

Save idontgetoutmuch/a0277e1975905ba8a17de093b9ececb6 to your computer and use it in GitHub Desktop.
{ mkDerivation, accelerate, base, stdenv }:
mkDerivation {
pname = "testAcc";
version = "0.1.0.0";
src = ./.;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ accelerate base ];
license = stdenv.lib.licenses.bsd3;
}
let
pkgs = import <nixpkgs> { };
in
let
my-accelerate = pkgs.haskellPackages.accelerate.overrideAttrs (oldAttrs: rec {
src = pkgs.fetchgit {
url = https://github.com/tmcdonell/accelerate;
rev = "a7b685352330ebf7d8794aed64663a9ee92dcdab";
sha256 = "01w9yxx6djhgdhagdswkshdda6mkypvy0ajfrwyr0swrbkx6rrw5";
};
doCheck = false;
});
in
pkgs.haskellPackages.callPackage ./default.nix { accelerate = my-accelerate; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment