Giter Site home page Giter Site logo

nixos / distribution-nixpkgs Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 6.0 103 KB

Haskell types and functions to represent, query, and manipulate the Nixpkgs distribution. | Source has moved to https://github.com/nixos/cabal2nix

Home Page: http://hackage.haskell.org/package/distribution-nixpkgs

Haskell 95.34% Nix 3.77% Shell 0.89%

distribution-nixpkgs's Introduction

distribution-nixpkgs's People

Contributors

sternenseemann avatar

Stargazers

 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

distribution-nixpkgs's Issues

SMP issues with GHC 8.4

[3 of 6] Compiling Internal.OrphanInstances ( src/Internal/OrphanInstances.hs, dist/build/Internal/OrphanInstances.o )

src/Internal/OrphanInstances.hs:9:10: error:
    Duplicate instance declarations:
      instance NFData Arch
        -- Defined at src/Internal/OrphanInstances.hs:9:10
      instance NFData Arch -- Defined in ‘Distribution.System’
  |
9 | instance NFData Arch
  |          ^^^^^^^^^^^

src/Internal/OrphanInstances.hs:10:10: error:
    Duplicate instance declarations:
      instance NFData OS
        -- Defined at src/Internal/OrphanInstances.hs:10:10
      instance NFData OS -- Defined in ‘Distribution.System’
   |
10 | instance NFData OS
   |          ^^^^^^^^^

src/Internal/OrphanInstances.hs:11:10: error:
    Duplicate instance declarations:
      instance NFData Platform
        -- Defined at src/Internal/OrphanInstances.hs:11:10
      instance NFData Platform -- Defined in ‘Distribution.System’
   |
11 | instance NFData Platform
   |          ^^^^^^^^^^^^^^^

...and..

src/Language/Nix/PrettyPrinting.hs:28:12: error:
    Precedence parsing error
        cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression
   |
28 | attr n v = text n <+> equals <+> v <> semi
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Language/Nix/PrettyPrinting.hs:28:36: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/Language/Nix/PrettyPrinting.hs:5:8-34
                             (and originally defined in ‘GHC.Base’)
                          or ‘Text.PrettyPrint.HughesPJClass.<>’,
                             imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Nix/PrettyPrinting.hs:25:1-46
                             (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
28 | attr n v = text n <+> equals <+> v <> semi
   |                                    ^^

src/Language/Nix/PrettyPrinting.hs:40:30: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/Language/Nix/PrettyPrinting.hs:5:8-34
                             (and originally defined in ‘GHC.Base’)
                          or ‘Text.PrettyPrint.HughesPJClass.<>’,
                             imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Nix/PrettyPrinting.hs:25:1-46
                             (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
40 |                       rbrack <> semi
   |                              ^^

src/Language/Nix/PrettyPrinting.hs:58:36: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/Language/Nix/PrettyPrinting.hs:5:8-34
                             (and originally defined in ‘GHC.Base’)
                          or ‘Text.PrettyPrint.HughesPJClass.<>’,
                             imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Nix/PrettyPrinting.hs:25:1-46
                             (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
58 | prepunctuate p (d:ds) = d : map (p <>) ds
   |                                    ^^

src/Language/Nix/PrettyPrinting.hs:62:53: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/Language/Nix/PrettyPrinting.hs:5:8-34
                             (and originally defined in ‘GHC.Base’)
                          or ‘Text.PrettyPrint.HughesPJClass.<>’,
                             imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Nix/PrettyPrinting.hs:25:1-46
                             (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
62 |                lbrace <+> fcat (prepunctuate (comma <> text " ") $ map (nest 2) xs),
   |                                                     ^^

src/Language/Nix/PrettyPrinting.hs:63:23: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/Language/Nix/PrettyPrinting.hs:5:8-34
                             (and originally defined in ‘GHC.Base’)
                          or ‘Text.PrettyPrint.HughesPJClass.<>’,
                             imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Nix/PrettyPrinting.hs:25:1-46
                             (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
   |
63 |                rbrace <> colon
   |                       ^^
builder for ‘/nix/store/86wxjn9zl3lx4al5s6cp0zr69klk1bj0-distribution-nixpkgs-1.1.drv’ failed with exit code 1

readNixpkgSet doesn't record multiple attributes for the same derivation

This is an inherent problem of using nix-env: This tool lists unique derivation and additional information, like their name or attribute path. As a result every derivation will only be listed once with one attribute path (it seems the one that comes first in an alphanumeric sort is used).

This is an issue if we are more interested in attributes than derivations: If we resolve "pam", we'll get python38Packages.pam as the shortest identifier despite the expected solution being just pam. This happens because on Linux pam == linux-pam and nix-env only displays one of those attributes.

This should be fixable, but it will require a bit of refactoring (since we won't be able to achieve what we want with nix-env in a clean way). I'll try to send a PR in the near future.

Status of the repository?

Hi,

As part of NixOS/teams-collaboration#1, I am trying to clarify the status of the repositories under the NixOS organisation.

This repository seems to be unmaintained or obsolete, so it will be archived in a month.

If you think it warrants staying here or should be moved to another organization instead, please answer this issue.

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.