Git Product home page Git Product logo

easy-dhall-nix's Introduction

Easy Dhall Nix

Derivations for easily downloading Dhall binaries and putting them to use.

Trial

You can get an appropriate nix-shell with the binaries installed by first testing this with:

nix-shell

Installation

You might choose to simply copy the derivations from this repository, or you can fetch the git/Github repo using the various helpers:

> nix repl
nix-repl> pkgs = import ./nixpkgs.nix {}

nix-repl> drvs = import (pkgs.fetchFromGitHub {
  owner = "justinwoo";
  repo = "easy-dhall-nix";
  rev = # some REV
  sha256 = # some SHA
}) { inherit pkgs; }

nix-repl> drvs.dhall-simple
«derivation /nix/store/qz29jbplpmlvsbmq05084dh1fbs8sl0h-dhall-simple.drv»

NixOS: Contributors needed

The derivations here have been tested by others to work on NixOS. If you have problems, open an issue.

Update this repository

To update, run

./fetch.py

from the root of this repository. It will prefetch the binaries from the latest dhall release on Github.

easy-dhall-nix's People

Contributors

amesgen avatar aszlig avatar dbaynard avatar f-f avatar jhenahan avatar justinwoo avatar profpatsch avatar sternenseemann avatar tristancacqueray avatar trskop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easy-dhall-nix's Issues

Upstream macOS releases now contain more than `/bin`

It seems there's been a change in releases upstream, so that certain package tarballs (namely for dhall and dhall-docs on macOS, at least) contain more than just the bin directory. This causes fetchzip (after #28) to barf with

  trying https://github.com/dhall-lang/dhall-haskell/releases/download/1.36.0/dhall-1.36.0-x86_64-macos.tar.bz2
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   657  100   657    0     0   8760      0 --:--:-- --:--:-- --:--:--  8878
  100 3077k  100 3077k    0     0  5241k      0 --:--:-- --:--:-- --:--:-- 5241k
  unpacking source archive /private/tmp/nix-build-source.drv-3/dhall-1.36.0-x86_64-macos.tar.bz2
  error: zip file must contain a single file or directory.
  hint: Pass stripRoot=false; to fetchzip to assume flat list of files.

I'm working on a PR to fix it, but I won't be mad if someone beats me to it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.