diff --git a/compiler/asar/default.nix b/compiler/asar/default.nix new file mode 100644 index 0000000..84b1089 --- /dev/null +++ b/compiler/asar/default.nix @@ -0,0 +1,20 @@ +{ + 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"; + passthru.updateScript = [../../scripts/update-git.sh "https://github.com/RPGHacker/asar" "compiler/asar/source.json"]; + } diff --git a/compiler/asar/source.json b/compiler/asar/source.json new file mode 100644 index 0000000..2aaef6d --- /dev/null +++ b/compiler/asar/source.json @@ -0,0 +1,11 @@ +{ + "url": "https://github.com/RPGHacker/asar", + "rev": "d39723aa3bd071f685e670914ec7b4e47a7e0455", + "date": "2023-07-16T03:47:38+03:00", + "path": "/nix/store/azqqw9j7wjxk2bgpd9nl14n0s2cy6pxf-asar", + "sha256": "1gawm1akq1q40mbmlpcrq3krz563ckp5c1bi2v7l3cq2mk24l3zc", + "fetchLFS": false, + "fetchSubmodules": false, + "deepClone": false, + "leaveDotGit": false +} diff --git a/default.nix b/default.nix index 10d4491..a9b1159 100644 --- a/default.nix +++ b/default.nix @@ -75,6 +75,7 @@ in fcitx5 plover-plugin-python-dictionary plover-plugin-stenotype-extended + asar ; } // ( diff --git a/flake.nix b/flake.nix index c8d5eae..0186a80 100644 --- a/flake.nix +++ b/flake.nix @@ -119,6 +119,7 @@ fcitx5 plover-plugin-python-dictionary plover-plugin-stenotype-extended + asar ; } // ( diff --git a/overlay.nix b/overlay.nix index a40c70c..33e6cd0 100644 --- a/overlay.nix +++ b/overlay.nix @@ -127,6 +127,7 @@ system: self: super: let }); linux-bcachefs = self.callPackage ./linux/bcachefs {kernelPatches = [];}; bcachefs-tools = self.callPackage ./linux/bcachefs-tools {}; + asar = self.callPackage ./compiler/asar {}; }) riscv-overlay ];