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

Use qd and q overlays from their flakes

parent b8499c81
No related branches found
No related tags found
No related merge requests found
...@@ -58,11 +58,8 @@ in ...@@ -58,11 +58,8 @@ in
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ./pkgs) (import ./pkgs)
(self: super: flakeInputs.qd.overlay
{ flakeInputs.q.overlay
qd = flakeInputs.qd.packages."${system}".qd;
}
)
]; ];
# Pin channel in nix path # Pin channel in nix path
......
{ 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