1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00
sops-nix/pkgs/sops-install-secrets/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, lib, buildGoModule, path, pkgs, vendorSha256, go }:
2020-07-06 06:30:09 +00:00
buildGoModule {
pname = "sops-install-secrets";
version = "0.0.1";
2020-07-12 12:50:55 +00:00
src = ../..;
2020-07-06 06:30:09 +00:00
2020-07-12 12:50:55 +00:00
subPackages = [ "pkgs/sops-install-secrets" ];
2020-08-10 17:17:08 +00:00
# requires root privileges for tests
doCheck = false;
passthru.tests = import ./nixos-test.nix {
makeTest = import (path + "/nixos/tests/make-test-python.nix");
inherit pkgs;
};
2020-11-13 09:39:17 +00:00
outputs = [ "out" "unittest" ];
postBuild = ''
go test -c ./pkgs/sops-install-secrets
install -D ./sops-install-secrets.test $unittest/bin/sops-install-secrets.test
# newer versions of nixpkgs no longer require this step
if command -v remove-references-to; then
remove-references-to -t ${go} $unittest/bin/sops-install-secrets.test
fi
2020-11-13 09:39:17 +00:00
'';
2020-07-12 16:18:12 +00:00
inherit vendorSha256;
meta = with lib; {
2020-07-12 16:18:12 +00:00
description = "Atomic secret provisioning based on sops";
homepage = "https://github.com/Mic92/sops-nix";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
platforms = platforms.linux;
2020-07-12 16:18:12 +00:00
};
2020-07-06 06:30:09 +00:00
}