-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshellswain.nix
42 lines (35 loc) · 974 Bytes
/
shellswain.nix
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
34
35
36
37
38
39
40
41
42
{ lib
, resholve
, comity
, callPackage
}:
resholve.mkDerivation rec {
pname = "shellswain";
version = "0.1.0";
src = lib.cleanSource ./.;
# src = fetchFromGitHub {
# owner = "abathur";
# repo = "shellswain";
# rev = "b6753c6c17be8b021eedffd57a6918f80b914662";
# # rev = "v${version}";
# sha256 = "0jninx8aasa83g38qdpzy86m71xkpk7dzz8fvnab3lyk9fll4jk0";
# };
solutions = {
profile = {
scripts = [ "bin/shellswain.bash" ];
interpreter = "none";
inputs = [ comity ];
};
};
makeFlags = [ "prefix=${placeholder "out"}" ];
doCheck = false;
# TODO: below likely needs fixing
passthru.tests = callPackage ./test.nix { };
meta = with lib; {
description = "Bash library supporting simple event-driven bash profile scripts & modules";
homepage = https://github.com/abathur/shellswain;
license = licenses.mit;
maintainers = with maintainers; [ abathur ];
platforms = platforms.all;
};
}