diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:43:51 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:43:51 +0300 |
| commit | b85e90fc3480da0e6a48da73201a0b22488cc650 (patch) | |
| tree | 42b2e083e7d268747b01a03c0bedb48a9394585e /meta/nix/pkgs/blockgame-meta.nix | |
| parent | 5c7048091e3a191e8a34f26852a8976b254e339b (diff) | |
| parent | f88d1f18953f9619444d56756702c7eb54580ab1 (diff) | |
| download | Project-Tick-b85e90fc3480da0e6a48da73201a0b22488cc650.tar.gz Project-Tick-b85e90fc3480da0e6a48da73201a0b22488cc650.zip | |
Add 'meta/' from commit 'f88d1f18953f9619444d56756702c7eb54580ab1'
git-subtree-dir: meta
git-subtree-mainline: 5c7048091e3a191e8a34f26852a8976b254e339b
git-subtree-split: f88d1f18953f9619444d56756702c7eb54580ab1
Diffstat (limited to 'meta/nix/pkgs/blockgame-meta.nix')
| -rw-r--r-- | meta/nix/pkgs/blockgame-meta.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/nix/pkgs/blockgame-meta.nix b/meta/nix/pkgs/blockgame-meta.nix new file mode 100644 index 0000000000..8409c37cb4 --- /dev/null +++ b/meta/nix/pkgs/blockgame-meta.nix @@ -0,0 +1,70 @@ +{ + lib, + buildPythonApplication, + poetry-core, + bash, + cachecontrol, + requests, + filelock, + git, + openssh, + packaging, + pydantic_1, + python, + rsync, +}: +buildPythonApplication { + pname = "blockgame-meta"; + version = "unstable"; + + pyproject = true; + + src = with lib.fileset; + toSource { + root = ../../.; + fileset = unions (map (fileName: ../../${fileName}) [ + "meta" + "init.sh" + "pyproject.toml" + "poetry.lock" + "README.md" + "update.sh" + ]); + }; + + nativeBuildInputs = [ + poetry-core + ]; + + buildInputs = [ + bash + ]; + + propagatedBuildInputs = [ + cachecontrol + requests + filelock + packaging + pydantic_1 + ]; + + postInstall = '' + install -Dm755 $src/update.sh $out/bin/update + install -Dm755 $src/init.sh $out/bin/init + + wrapProgram $out/bin/update \ + --prefix PYTHONPATH : "$PYTHONPATH" \ + --prefix PATH : ${lib.makeBinPath [git openssh python rsync]} + + wrapProgram $out/bin/init \ + --prefix PATH : ${lib.makeBinPath [git openssh]} + ''; + + meta = with lib; { + description = "Metadata generator for blockgame launcher."; + platforms = platforms.linux; + license = licenses.mspl; + maintainers = with maintainers; [Scrumplex]; + mainProgram = "update"; + }; +} |
