Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Forked from Vizaxo/default.nix
Last active May 30, 2019 21:55
Show Gist options
  • Save cleverca22/bdd0915fd751a28aa511a3f56eab85e1 to your computer and use it in GitHub Desktop.
Save cleverca22/bdd0915fd751a28aa511a3f56eab85e1 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
haskellPackages.extend (self: super: {
ray-tracer = self.callPackage ./ray-tracer.nix {};
thing = self.callHackage "thing" "1.2.3" {};
})
{ mkDerivation, base, Chart, hip, hpack, lens, linear, stdenv }:
mkDerivation {
pname = "ray-tracer";
version = "0.1.0.0";
src = ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [ base Chart hip lens linear ];
libraryToolDepends = [ hpack ];
executableHaskellDepends = [ base hip lens linear ];
testHaskellDepends = [ base hip lens linear ];
preConfigure = "hpack";
homepage = "https://github.com/githubuser/ray-tracer#readme";
license = stdenv.lib.licenses.bsd3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment