owickstrom / gi-gtk-declarative

Declarative GTK+ programming in Haskell
https://owickstrom.github.io/gi-gtk-declarative/
288 stars 35 forks source link

marked broken in nix #61

Closed zoranbosnjak closed 4 years ago

zoranbosnjak commented 5 years ago

I can not use gi-gtk-declarative with the current version of nix (at the time of writing):

"url": "https://github.com/NixOS/nixpkgs-channels.git",
"ref": "nixos-unstable",
"rev": "e19054ab3cd5b7cc9a01d0efc71c8fe310541065"

When gi-gtk, gi-gtk-declarative and gi-gtk-declarative-app-simple are added to the project.cabal and default.nix file, the following error is reported:

$ nix-shell 
error: Package ‘gi-gtk-declarative-0.5.0’ in 
...hackage-packages.nix:93451 is marked as broken, refusing to evaluate.
zoranbosnjak commented 5 years ago

It might be related to a problem that nix-shell does not work on a clean checkout.

$ git clone https://github.com/owickstrom/gi-gtk-declarative.git
$ cd gi-gtk-declarative/
$ git rev-parse --short HEAD
4a04e4c
$ nix-shell

It reports the problem about patchPhase missing...

zoranbosnjak commented 4 years ago

@owickstrom The #62 solved one part of the problem (namely the nix-shell problem), but the initial problem remains. This package is still marked as broken in nix. You might want to reopen this issue.