This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/compiler/asar/default.nix

21 lines
503 B
Nix
Raw Normal View History

2023-07-18 14:58:41 +00:00
{
fetchFromGitHub,
cmake,
ninja,
stdenv,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
stdenv.mkDerivation {
pname = "asar";
version = source.date;
src = fetchFromGitHub {
owner = "RPGHacker";
repo = "asar";
inherit (source) rev sha256;
};
nativeBuildInputs = [cmake ninja];
cmakeDir = "../src";
2023-07-18 15:00:32 +00:00
passthru.updateScript = [../../scripts/update-git.sh "https://github.com/RPGHacker/asar" "compiler/asar/source.json"];
2023-07-18 14:58:41 +00:00
}