Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hackage4nix doesn't catch bitarray update from 0.0.1 to 0.0.1.1 #76

Closed
Fuuzetsu opened this issue Aug 12, 2014 · 3 comments
Closed

hackage4nix doesn't catch bitarray update from 0.0.1 to 0.0.1.1 #76

Fuuzetsu opened this issue Aug 12, 2014 · 3 comments

Comments

@Fuuzetsu
Copy link
Member

See bitarray package, hackage4nix should pick up that 0.0.1.1 is an update but it doesn't seem to.

@Fuuzetsu
Copy link
Member Author

In fact

[shana@lenalee:~]$ ./c2n cabal://bitarray
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0  3810    0     0  45515      0 --:--:-- --:--:-- --:--:-- 45515
path is ‘/nix/store/wlxigj3m1mm9mlp6w3msdip51b6dqnvp-bitarray-0.0.1.tar.gz’
# This file was auto-generated by cabal2nix. Please do NOT edit manually!

{ cabal }:

cabal.mkDerivation (self: {
  pname = "bitarray";
  version = "0.0.1";
  sha256 = "01ijysisw70zaw70hx851axw48agfamdqj21rzzhdqd2ww6bwchb";
  meta = {
    homepage = "http://code.haskell.org/~bkomuves/";
    description = "Mutable and immutable bit arrays";
    license = self.stdenv.lib.licenses.bsd3;
    platforms = self.ghc.meta.platforms;
  };
})

[shana@lenalee:~]$ ./c2n cabal://bitarray-0.0.1.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0  3701    0     0  43557      0 --:--:-- --:--:-- --:--:-- 43557
path is ‘/nix/store/zkg9s5m9xmbxcazanfs0s063j8src0mg-bitarray-0.0.1.1.tar.gz’
# This file was auto-generated by cabal2nix. Please do NOT edit manually!

{ cabal }:

cabal.mkDerivation (self: {
  pname = "bitarray";
  version = "0.0.1.1";
  sha256 = "00nqd62cbh42qqqvcl6iv1i9kbv0f0mkiygv4j70wfh5cl86yzxj";
  meta = {
    homepage = "http://code.haskell.org/~bkomuves/";
    description = "Mutable and immutable bit arrays";
    license = self.stdenv.lib.licenses.bsd3;
    platforms = self.ghc.meta.platforms;
  };
})

@peti
Copy link
Member

peti commented Aug 12, 2014

The bitarray update was uploaded to Hackage only 4 hours ago. You probably need to run cabal update to get a version of the Hackage database into your ~/.cabal directory that knows about that version. That did the trick for me:

$ cabal2nix cabal://bitarray | grep version
  version = "0.0.1.1";

@peti peti closed this as completed Aug 12, 2014
@Fuuzetsu
Copy link
Member Author

I ran cabal update before doing it. I'm not sure where the problem lies because my cabal update clearly works: hackage4nix shows updates after I cabal update. I tried it again and now it got picked up, maybe Hackage served me old index…

Sorry for the noise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants