add asar #292
5 changed files with 34 additions and 0 deletions
20
compiler/asar/default.nix
Normal file
20
compiler/asar/default.nix
Normal file
|
@ -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"];
|
||||||
|
}
|
11
compiler/asar/source.json
Normal file
11
compiler/asar/source.json
Normal file
|
@ -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
|
||||||
|
}
|
|
@ -75,6 +75,7 @@ in
|
||||||
fcitx5
|
fcitx5
|
||||||
plover-plugin-python-dictionary
|
plover-plugin-python-dictionary
|
||||||
plover-plugin-stenotype-extended
|
plover-plugin-stenotype-extended
|
||||||
|
asar
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
// (
|
// (
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
fcitx5
|
fcitx5
|
||||||
plover-plugin-python-dictionary
|
plover-plugin-python-dictionary
|
||||||
plover-plugin-stenotype-extended
|
plover-plugin-stenotype-extended
|
||||||
|
asar
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
// (
|
// (
|
||||||
|
|
|
@ -127,6 +127,7 @@ system: self: super: let
|
||||||
});
|
});
|
||||||
linux-bcachefs = self.callPackage ./linux/bcachefs {kernelPatches = [];};
|
linux-bcachefs = self.callPackage ./linux/bcachefs {kernelPatches = [];};
|
||||||
bcachefs-tools = self.callPackage ./linux/bcachefs-tools {};
|
bcachefs-tools = self.callPackage ./linux/bcachefs-tools {};
|
||||||
|
asar = self.callPackage ./compiler/asar {};
|
||||||
})
|
})
|
||||||
riscv-overlay
|
riscv-overlay
|
||||||
];
|
];
|
||||||
|
|
Reference in a new issue