fix openshift packages

This commit is contained in:
foosinn 2021-02-17 10:37:24 +01:00
parent d453e0fafd
commit bf5e357930
3 changed files with 29 additions and 4 deletions

25
packages/vaultsink.nix Normal file
View file

@ -0,0 +1,25 @@
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "vaultsink";
version = "0.1.8";
src = fetchurl {
url = "https://github.com/cookiefactory/vault-sink/releases/download/v${version}/vault-sink-linux-amd64";
sha256 = "057799e7f907186993b591e3b2f743b69d7a9fed";
};
nativeBuildInputs = [
autoPatchelfHook
];
installPhase = ''
install -m 755 -D vault-sink-linux-amd64 $out/bin/sink
'';
meta = with stdenv.lib; {
homepage = "https://github.com/cookiefactory/vault-sink";
description = "Vault Secret helper for yaml files";
platforms = platforms.linux;
maintainers = with maintainers; [ foosinn ];
};
}