From 2a4071049d90c958ac9707558399957119cbc56c Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Mon, 18 Nov 2024 13:16:21 +0100 Subject: [PATCH] Added nix --- renovate.json | 11 +++++++++++ tools/nix/Dockerfile.template | 33 +++++++++++++++++++++++++++++++++ tools/nix/manifest.yaml | 29 +++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 tools/nix/Dockerfile.template create mode 100644 tools/nix/manifest.yaml diff --git a/renovate.json b/renovate.json index 4d5596d4f6..685c643be2 100644 --- a/renovate.json +++ b/renovate.json @@ -6227,6 +6227,17 @@ "version: \"?(?.*?)\"?\\n" ] }, + { + "customType": "regex", + "datasourceTemplate": "github-tags", + "depNameTemplate": "NixOS/nix", + "fileMatch": [ + "^tools/nix/manifest.yaml$" + ], + "matchStrings": [ + "version: \"?(?.*?)\"?\\n" + ] + }, { "customType": "regex", "datasourceTemplate": "github-releases", diff --git a/tools/nix/Dockerfile.template b/tools/nix/Dockerfile.template new file mode 100644 index 0000000000..6297ea0981 --- /dev/null +++ b/tools/nix/Dockerfile.template @@ -0,0 +1,33 @@ +#syntax=docker/dockerfile:1.11.1@sha256:10c699f1b6c8bdc8f6b4ce8974855dd8542f1768c26eb240237b8f1c9c6c9976 + +FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare +COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \ + /etc/profile.d/ \ + /etc/profile.d/ +SHELL [ "bash", "-clo", "errexit" ] +ARG name +ARG version +RUN --mount=type=cache,target=/var/cache/uniget/download <"${prefix}/share/bash-completion/completions/foo" +#"${prefix}/bin/foo" completion fish >"${prefix}/share/fish/vendor_completions.d/foo.fish" +#"${prefix}/bin/foo" completion zsh >"${prefix}/share/zsh/vendor-completions/_foo" +#EOF \ No newline at end of file diff --git a/tools/nix/manifest.yaml b/tools/nix/manifest.yaml new file mode 100644 index 0000000000..c6c03ce5b2 --- /dev/null +++ b/tools/nix/manifest.yaml @@ -0,0 +1,29 @@ +# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml +$schema: https://tools.uniget.dev/schema.yaml +name: nix +license: + name: LGPL-2.1 + link: https://github.com/NixOS/nix/blob/master/COPYING +version: "2.25.2" +check: "" +platforms: +- linux/amd64 +- linux/arm64 +tags: +- org/nixos +- category/development +- lang/c +- type/cli +homepage: https://nixos.org/ +repository: https://github.com/NixOS/nix +description: The purely functional package manager +messages: + internals: | + - This package must be installed to / + - Create a group called `nixbld`: groupadd nixbld + - Add user allowed to manage packages: usermod -aG nixbld $(whoami) + - See https://nix.dev/manual/nix/2.18/installation/multi-user +renovate: + datasource: github-tags + package: NixOS/nix + priority: low \ No newline at end of file