Skip to content

Commit 1feb9c4

Browse files
committed
Remove me: bump version and add Nix
1 parent e11273e commit 1feb9c4

8 files changed

Lines changed: 203 additions & 1 deletion

File tree

flake.lock

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
inputs = {
3+
flake-utils.url = "github:numtide/flake-utils";
4+
hdeps = {
5+
url = "github:LightAndLight/hdeps";
6+
inputs.flake-utils.follows = "flake-utils";
7+
};
8+
};
9+
outputs = { self, nixpkgs, flake-utils, hdeps }:
10+
{
11+
overlays.default = final: prev: {
12+
haskellPackages =
13+
(prev.haskellPackages.extend (import ./nix/generated/overlay.nix)).extend (hfinal: hprev: {
14+
hoogle = prev.haskell.lib.dontHaddock (hprev.callPackage ./hoogle.nix {});
15+
});
16+
};
17+
} //
18+
flake-utils.lib.eachDefaultSystem (system:
19+
let
20+
pkgs = import nixpkgs { inherit system; };
21+
in {
22+
devShell = pkgs.mkShell {
23+
buildInputs = with pkgs; [
24+
# C
25+
clang-tools clang gdb
26+
27+
# Haskell
28+
ghc cabal-install haskell-language-server
29+
30+
# Project
31+
just haskellPackages.fourmolu cabal2nix hdeps.packages.${system}.default haskellPackages.implicit-hie
32+
33+
zlib
34+
];
35+
};
36+
}
37+
);
38+
}

hoogle.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 1.18
22
build-type: Simple
33
name: hoogle
4-
version: 5.0.19.0
4+
version: 5.0.20.0
55
license: BSD3
66
license-file: LICENSE
77
category: Development

hoogle.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{ mkDerivation, aeson, ansi-terminal, base, binary, blaze-html
2+
, blaze-markup, bytestring, Cabal-syntax, cmdargs, conduit
3+
, conduit-extra, containers, crypton-connection, data-default-class
4+
, deepseq, directory, extra, filepath, ghc-lib-parser
5+
, hackage-revdeps, hashable, haskell-src-exts, http-conduit
6+
, http-types, js-flot, js-jquery, lib, mmap, old-locale
7+
, process-extras, QuickCheck, resourcet, safe, storable-tuple, tar
8+
, template-haskell, temporary, text, time, transformers, uniplate
9+
, utf8-string, vector, wai, wai-logger, warp, warp-tls, zlib
10+
}:
11+
mkDerivation {
12+
pname = "hoogle";
13+
version = "5.0.20.0";
14+
src = ./.;
15+
isLibrary = true;
16+
isExecutable = true;
17+
enableSeparateDataOutput = true;
18+
libraryHaskellDepends = [
19+
aeson ansi-terminal base binary blaze-html blaze-markup bytestring
20+
Cabal-syntax cmdargs conduit conduit-extra containers
21+
crypton-connection data-default-class deepseq directory extra
22+
filepath ghc-lib-parser hackage-revdeps hashable haskell-src-exts
23+
http-conduit http-types js-flot js-jquery mmap old-locale
24+
process-extras QuickCheck resourcet safe storable-tuple tar
25+
template-haskell temporary text time transformers uniplate
26+
utf8-string vector wai wai-logger warp warp-tls zlib
27+
];
28+
executableHaskellDepends = [ base ];
29+
testFlags = [ "--no-net" ];
30+
homepage = "https://hoogle.haskell.org/";
31+
description = "Haskell API Search";
32+
license = lib.licenses.bsd3;
33+
mainProgram = "hoogle";
34+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ mkDerivation, alfred-margaret, ansi-terminal, base, bytestring
2+
, Cabal, cabal-install, Cabal-syntax, callPackage, containers
3+
, filepath, lib, optparse-applicative, tar, text, time, zlib
4+
}:
5+
mkDerivation {
6+
pname = "hackage-revdeps";
7+
version = "0.3";
8+
src = callPackage ./src.nix {};
9+
isLibrary = true;
10+
isExecutable = true;
11+
libraryHaskellDepends = [
12+
alfred-margaret base bytestring Cabal-syntax containers filepath
13+
tar text time zlib
14+
];
15+
executableHaskellDepends = [
16+
ansi-terminal base Cabal cabal-install Cabal-syntax containers
17+
filepath optparse-applicative time
18+
];
19+
description = "List Hackage reverse dependencies";
20+
license = lib.licenses.bsd3;
21+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{ fetchzip }:
2+
fetchzip {
3+
url = "https://hackage.haskell.org/package/hackage-revdeps/hackage-revdeps-0.3.tar.gz";
4+
sha256 = "1v4b7nb36hcz0wvi3qvrchzp09h26pbfky80m4m8yp4mnmg9wzrg";
5+
}

nix/generated/overlay.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self: super: {
2+
hackage-revdeps = self.callPackage ./hackage-revdeps {};
3+
}

nix/hdeps.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hackage-revdeps": {
3+
"type": "hackage",
4+
"version": "0.3"
5+
}
6+
}

0 commit comments

Comments
 (0)