forked from neilmayhew/RepoExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
33 lines (26 loc) · 1004 Bytes
/
default.nix
File metadata and controls
33 lines (26 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, base, bytestring, cmdargs, containers
, cryptohash, debian, directory, download-curl, fgl, filepath
, MissingH, parsec, stdenv, unix, zlib
}:
mkDerivation {
pname = "RepoExplorer";
version = "0.5.0.0";
src = ./.;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base bytestring cmdargs containers cryptohash debian directory
download-curl fgl filepath MissingH parsec unix zlib
];
description = "A set of utilities for exploring Debian package repositories";
license = stdenv.lib.licenses.mit;
};
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage f {};
in
if pkgs.lib.inNixShell then drv.env else drv