Giter Site home page Giter Site logo

idris-hackers / idrispkgs Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 4.0 194 KB

Old Nix expressions for Idris packaging. Idris support moved into Nixpkgs!

Home Page: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/idris-modules

License: MIT License

Nix 97.40% Idris 2.60%

idrispkgs's People

Contributors

puffnfresh 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  avatar  avatar  avatar

Watchers

 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  avatar  avatar  avatar  avatar

idrispkgs's Issues

nix-build example.nix unsuccessful on https://nixos.org/channels/nixos-unstable

Running nix-build example.nix on https://nixos.org/channels/nixos-unstable is unsuccessful.

1 markus@nixos ~/git/idris/temp/idrispkgs (git)-[master] % nix-build --show-trace example.nix :(
error: while evaluating the attribute ‘buildCommand’ of the derivation ‘idris-nix-example’ at /home/markus/git/idris/temp/idrispkgs/example.nix:7:3:
while evaluating the attribute ‘buildCommand’ of the derivation ‘idris-wrapper’ at /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating ‘callPackage’ at /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/pkgs/development/haskell-modules/default.nix:50:26, called from /home/markus/git/idris/temp/idrispkgs/default.nix:2:17:
while evaluating ‘callPackageWithScope’ at /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/pkgs/development/haskell-modules/default.nix:44:42, called from /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/pkgs/development/haskell-modules/default.nix:50:32:
while evaluating ‘callPackageWith’ at /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/lib/customisation.nix:103:35, called from /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/pkgs/development/haskell-modules/default.nix:44:49:
while evaluating ‘makeOverridable’ at /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/lib/customisation.nix:56:24, called from /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/lib/customisation.nix:107:8:
anonymous function at /home/markus/git/idris/temp/idrispkgs/idris_plain/default.nix:1:1 called without required argument ‘cabal’, at /nix/store/jcn0fckjwisxc000xxqmh316bgl2s8hi-nixos-15.06pre65267.6ad8fab/nixos/nixpkgs/lib/customisation.nix:58:12

What I tried:
I tried to modify default.nix by changing the arguments to
{ nixpkgs ? import {}
, idris_plain ? nixpkgs.haskellPackages.callPackage ./idris_plain {
cabal = nixpkgs.haskellPackages.cabal-install;
inherit (nixpkgs.haskellPackages) annotatedWlPprint ansiTerminal ansiWlPprint
base64Bytestring binary blazeHtml blazeMarkup boehmgc
cheapskate deepseq filepath fingertree gmp happy haskeline
lens libffi mtl network optparseApplicative parsers safe
split text time transformers trifecta unorderedContainers
utf8String vector vectorBinaryInstances xml zlib
fetchFromGitHub ;}
}:

which yields
1 markus@nixos ~/git/idris/idrispkgs (git)-[master] % nix-build example.nix :(
error: attribute ‘mkDerivation’ missing, at /home/markus/git/idris/idrispkgs/idris_plain/default.nix:10:1

So it seems, I need to inject a variable "cabal" that has mkDerivation defined. Unfortunately, I do not know enough about nix yet to do that.

Thank you very much.

Can’t query status.

OS X doesn’t seem to like ${glibcLocales}.

$ nix-env -qa --status --show-trace                       
error: while evaluating the attribute ‘LOCALE_ARCHIVE’ of the derivation ‘commonmark-31b7bb562a97fe9fefbeb4c7129d050b81b408e2’ at /Users/greg/Documents/sources/idrispkgs/default.nix:14:7:
cannot coerce null to a string, at /Users/greg/Documents/sources/idrispkgs/default.nix:18:25

Haskell and NixOS

Nice work! But please note, that in some time cabal.mkDerivation is going to be deprecated in NixOS, because there is a new generation of haskell pkgs managing called haskellng.

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.