bees: add link to nixos test
This commit is contained in:
parent
20ee7bd673
commit
4554e6698d
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv, runCommand, fetchFromGitHub, bash, btrfs-progs, coreutils, python3Packages, util-linux }:
|
{ lib, stdenv, runCommand, fetchFromGitHub, bash, btrfs-progs, coreutils
|
||||||
|
, python3Packages, util-linux, nixosTests }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -55,7 +56,7 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
runCommand "bees-service" {
|
(runCommand "bees-service" {
|
||||||
inherit bash bees coreutils;
|
inherit bash bees coreutils;
|
||||||
utillinux = util-linux; # needs to be a valid shell variable name
|
utillinux = util-linux; # needs to be a valid shell variable name
|
||||||
btrfsProgs = btrfs-progs; # needs to be a valid shell variable name
|
btrfsProgs = btrfs-progs; # needs to be a valid shell variable name
|
||||||
|
@ -64,4 +65,8 @@ runCommand "bees-service" {
|
||||||
substituteAll ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper
|
substituteAll ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper
|
||||||
chmod +x "$out"/bin/bees-service-wrapper
|
chmod +x "$out"/bin/bees-service-wrapper
|
||||||
ln -s ${bees}/bin/beesd "$out"/bin/beesd
|
ln -s ${bees}/bin/beesd "$out"/bin/beesd
|
||||||
''
|
'').overrideAttrs (old: {
|
||||||
|
passthru.tests = {
|
||||||
|
smoke-test = nixosTests.bees;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue