Skip to content
Snippets Groups Projects
Commit d60be656 authored by Jens Nolte's avatar Jens Nolte
Browse files

Add q package

parent 5e86bfb4
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ let
haskell = pkgs.haskell // {
packageOverrides = self: super: {
q = self.callPackage ./q {};
qbar = self.callPackage ./qbar {};
};
};
......@@ -30,6 +31,7 @@ let
};
}));
q = haskellPackages.q;
qbar = haskellPackages.qbar;
};
......
{ haskell, fetchgit, callCabal2nix }:
let
repo = with builtins; fromJSON ( readFile ./repo.json );
src = fetchgit {
inherit (repo) url rev sha256;
};
in
haskell.lib.generateOptparseApplicativeCompletion "q" (
callCabal2nix "q" src {}
)
{
"ref": "refs/heads/master",
"url": "https://git.c3pb.de/jens/q.git",
"rev": "029d589c88c676c1e8a7e96f91f563a5a4eb5190",
"date": "2020-07-12T19:45:06+02:00",
"path": "/nix/store/1f3f7nwpcwf9yczfmam72mi65gmabbf5-q",
"sha256": "01j37vyjzjhs3a6661w20hhfwhacxsvfyl005zz49r9kv4618f81",
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false
}
#!/usr/bin/env nix-shell
#! nix-shell -i sh -p nix-prefetch-git jq
url="https://git.c3pb.de/jens/q.git"
ref="refs/heads/master"
nix-prefetch-git --rev "$ref" --no-deepClone "$url" | jq --arg ref "$ref" '{ref: $ref} + .' > repo.json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment