Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppet: init at 8.6.0 #310152

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkgs/by-name/pu/puppet/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "puppet"
37 changes: 37 additions & 0 deletions pkgs/by-name/pu/puppet/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
concurrent-ruby (1.2.3)
deep_merge (1.2.2)
facter (4.7.0)
hocon (~> 1.3)
thor (>= 1.0.1, < 1.3)
fast_gettext (2.3.0)
hocon (1.4.0)
locale (2.1.4)
multi_json (1.15.0)
puppet (8.6.0)
concurrent-ruby (~> 1.0)
deep_merge (~> 1.0)
facter (>= 4.3.0, < 5)
fast_gettext (>= 2.1, < 3)
locale (~> 2.1)
multi_json (~> 1.13)
puppet-resource_api (~> 1.5)
scanf (~> 1.0)
semantic_puppet (~> 1.0)
puppet-resource_api (1.9.0)
hocon (>= 1.0)
scanf (1.0.0)
semantic_puppet (1.1.0)
thor (1.2.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
puppet

BUNDLED WITH
2.5.9
125 changes: 125 additions & 0 deletions pkgs/by-name/pu/puppet/gemset.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
concurrent-ruby = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1qh1b14jwbbj242klkyz5fc7npd4j0mvndz62gajhvl1l3wd7zc2";
type = "gem";
};
version = "1.2.3";
};
deep_merge = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0fjn4civid68a3zxnbgyjj6krs3l30dy8b4djpg6fpzrsyix7kl3";
type = "gem";
};
version = "1.2.2";
};
facter = {
dependencies = ["hocon" "thor"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0bigvzjqmfd7s0wwmg22372iffy4jz71x25g1r1ij8h60bk1097h";
type = "gem";
};
version = "4.7.0";
};
fast_gettext = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "112gsrqah2w03kgi9mjsn6hl74mrwckphf223h36iayc4djf4lq2";
type = "gem";
};
version = "2.3.0";
};
hocon = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "106dmzsl1bxkqw5xaif012nwwfr3k9wff32cqc77ibjngknj6477";
type = "gem";
};
version = "1.4.0";
};
locale = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "107pm4ccmla23z963kyjldgngfigvchnv85wr6m69viyxxrrjbsj";
type = "gem";
};
version = "2.1.4";
};
multi_json = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0pb1g1y3dsiahavspyzkdy39j4q377009f6ix0bh1ag4nqw43l0z";
type = "gem";
};
version = "1.15.0";
};
puppet = {
dependencies = ["concurrent-ruby" "deep_merge" "facter" "fast_gettext" "locale" "multi_json" "puppet-resource_api" "scanf" "semantic_puppet"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1b9a1spqh5zfmpr0f1rz597wr7s4d7d796768ms04ssd634r4539";
type = "gem";
};
version = "8.6.0";
};
puppet-resource_api = {
dependencies = ["hocon"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0rxy5s7hl707x4sc1b4v2yqyii6pkym2gmsam3ri0f0xmmzyg0jb";
type = "gem";
};
version = "1.9.0";
};
scanf = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "000vxsci3zq8m1wl7mmppj7sarznrqlm6v2x2hdfmbxcwpvvfgak";
type = "gem";
};
version = "1.0.0";
};
semantic_puppet = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0ndqm3jnpdlwkk1jwqdyyb7yw7gv6r4kmjs30g09ap8siv80ilaj";
type = "gem";
};
version = "1.1.0";
};
thor = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0k7j2wn14h1pl4smibasw0bp66kg626drxb59z7rzflch99cd4rg";
type = "gem";
};
version = "1.2.2";
};
}
31 changes: 31 additions & 0 deletions pkgs/by-name/pu/puppet/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
bundlerApp,
bundlerUpdateScript,
lib,
puppet,
testers,
}:

bundlerApp {
pname = "puppet";
gemdir = ./.;
exes = [ "puppet" ];

passthru = {
tests.version = testers.testVersion {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to set HOME to a writable directory to fix the build.

puppet --version returned a non-zero exit code.
Error: Could not initialize global default settings: Permission denied @ dir_s_mkdir - /homeless-shelter
error: builder for '/nix/store/rcd9dn8m8450a1q825k6an6imsqjf79c-puppet-8.6.0-test-version.drv' failed with exit code 1;

package = puppet;
command = "HOME=$(mktemp -d) puppet --version";
inherit ((import ./gemset.nix).puppet) version;
};
updateScript = bundlerUpdateScript "puppet";
};

meta = {
description = "Server automation framework and application";
homepage = "https://github.com/puppetlabs/puppet";
changelog = "https://github.com/puppetlabs/puppet/blob/main/CHANGELOG.md";
license = lib.licenses.asl20;
mainProgram = "puppet";
maintainers = with lib.maintainers; [ baloo ];
};
}