Loading pkgs/by-name/so/sops/package.nix +25 −7 Original line number Diff line number Diff line Loading @@ -5,16 +5,19 @@ installShellFiles, versionCheckHook, nix-update-script, makeWrapper, runCommand, age, }: buildGoModule rec { buildGoModule (final: { pname = "sops"; version = "3.10.1"; src = fetchFromGitHub { owner = "getsops"; repo = pname; tag = "v${version}"; repo = final.pname; tag = "v${final.version}"; hash = "sha256-LdsuN243oQ/L6LYgynb7Kw60alXn5IfUfhY0WaZFVCU="; }; Loading @@ -25,10 +28,13 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X github.com/getsops/sops/v3/version.Version=${version}" "-X github.com/getsops/sops/v3/version.Version=${final.version}" ]; nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles makeWrapper ]; postInstall = '' installShellCompletion --cmd sops --bash ${./bash_autocomplete} Loading @@ -41,10 +47,22 @@ buildGoModule rec { passthru.updateScript = nix-update-script { }; # wrap sops with age plugins passthru.withAgePlugins = filter: runCommand "sops-${final.version}-with-age-plugins" { nativeBuildInputs = [ makeWrapper ]; } '' makeWrapper ${lib.getBin final.finalPackage}/bin/sops $out/bin/sops \ --prefix PATH : "${lib.makeBinPath (filter age.passthru.plugins)}" ''; meta = { homepage = "https://getsops.io/"; description = "Simple and flexible tool for managing secrets"; changelog = "https://github.com/getsops/sops/blob/v${version}/CHANGELOG.rst"; changelog = "https://github.com/getsops/sops/blob/v${final.version}/CHANGELOG.rst"; mainProgram = "sops"; maintainers = with lib.maintainers; [ Scrumplex Loading @@ -52,4 +70,4 @@ buildGoModule rec { ]; license = lib.licenses.mpl20; }; } }) Loading
pkgs/by-name/so/sops/package.nix +25 −7 Original line number Diff line number Diff line Loading @@ -5,16 +5,19 @@ installShellFiles, versionCheckHook, nix-update-script, makeWrapper, runCommand, age, }: buildGoModule rec { buildGoModule (final: { pname = "sops"; version = "3.10.1"; src = fetchFromGitHub { owner = "getsops"; repo = pname; tag = "v${version}"; repo = final.pname; tag = "v${final.version}"; hash = "sha256-LdsuN243oQ/L6LYgynb7Kw60alXn5IfUfhY0WaZFVCU="; }; Loading @@ -25,10 +28,13 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X github.com/getsops/sops/v3/version.Version=${version}" "-X github.com/getsops/sops/v3/version.Version=${final.version}" ]; nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles makeWrapper ]; postInstall = '' installShellCompletion --cmd sops --bash ${./bash_autocomplete} Loading @@ -41,10 +47,22 @@ buildGoModule rec { passthru.updateScript = nix-update-script { }; # wrap sops with age plugins passthru.withAgePlugins = filter: runCommand "sops-${final.version}-with-age-plugins" { nativeBuildInputs = [ makeWrapper ]; } '' makeWrapper ${lib.getBin final.finalPackage}/bin/sops $out/bin/sops \ --prefix PATH : "${lib.makeBinPath (filter age.passthru.plugins)}" ''; meta = { homepage = "https://getsops.io/"; description = "Simple and flexible tool for managing secrets"; changelog = "https://github.com/getsops/sops/blob/v${version}/CHANGELOG.rst"; changelog = "https://github.com/getsops/sops/blob/v${final.version}/CHANGELOG.rst"; mainProgram = "sops"; maintainers = with lib.maintainers; [ Scrumplex Loading @@ -52,4 +70,4 @@ buildGoModule rec { ]; license = lib.licenses.mpl20; }; } })