rev: tip sq/default.nix -rw-r--r-- 497 bytes View raw Log this file
bea5370f4954Evan Hanson Update Nix config and install test dependencies during build 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let
  eggsHash = "sha256-12K64Uhx8JW+nvK6pw/Sd4Ecak4F/YNJMT3+Rp9cudY=";
in {
  sources ? import ./nix/sources.nix,
  pkgs ? import sources.nixpkgs {},
  beaker ? import (fetchTarball https://git.sr.ht/~evhan/beaker/archive/0.0.14.tar.gz) { inherit pkgs; }
}:
with pkgs; with beaker; eggProgram {
  name = "sq";
  src = ./.;
  eggCache = eggCache {
    hash = eggsHash;
    eggs = ./sq.egg.lock;
  };
  postInstall = ''
    wrapProgram $out/bin/sq --prefix PATH : ${lib.makeBinPath [ jq ]}
  '';
}