pkgs: Add bang-evaluator

I don’t know if (and doubt that) this is a good solution. I can’t simply
callPackage it, since it does not use a callPackage compatible nix
expression but rather a ready-to-build default.nix. Also, I need the
source in two different files, one of which can’t use nixpkgs fetchers.
pull/48/head
Simon Bruder 2021-02-07 21:00:09 +01:00
parent b8601e6fd3
commit dde17cf4ec
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
3 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,10 @@
self: super: {
self: super:
let
srcs = import ./srcs.nix;
in
{
bang-evaluator = import srcs.bang-evaluator { pkgs = self; };
bwrap-helper = super.callPackage ./bwrap-helper { };
osu-lazer = super.callPackage ./osu-lazer { inherit (super) osu-lazer; };

View File

@ -1,5 +1,10 @@
{ pkgs, ... }:
let
srcs = import ./srcs.nix;
in
{
imports = [
./wordclock-dimmer/module.nix
"${srcs.bang-evaluator}/module.nix"
];
}

6
pkgs/srcs.nix Normal file
View File

@ -0,0 +1,6 @@
{
bang-evaluator = builtins.fetchTarball {
url = "https://git.sbruder.de/simon/bangs/archive/ca0d9ed47b21d7424a3b8be7bb55c55c62d17d3a.tar.gz";
sha256 = "1dk5lrhfnyqq604ih584kdb9z3zg49rp9y6b0ai3g5i3f0lwcfw7";
};
}