mirror of
https://github.com/tale/headplane.git
synced 2026-08-29 00:17:13 +00:00
feat: nix: rename hp_ssh_wasm to headplane-ssh-wasm for consistency
This commit is contained in:
committed by
Aarnav Tale
parent
d257b22f91
commit
89e38e1356
+3
-4
@@ -1,12 +1,11 @@
|
||||
{
|
||||
git,
|
||||
headplane-ssh-wasm,
|
||||
lib,
|
||||
makeWrapper,
|
||||
nodejs_22,
|
||||
pnpm_10,
|
||||
stdenv,
|
||||
hp_ssh_wasm,
|
||||
...
|
||||
}: let
|
||||
pkg = builtins.fromJSON (builtins.readFile ../package.json);
|
||||
pname = pkg.name;
|
||||
@@ -34,8 +33,8 @@ in
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
cp ${hp_ssh_wasm}/hp_ssh.wasm app/hp_ssh.wasm
|
||||
cp ${hp_ssh_wasm}/wasm_exec.js app/wasm_exec.js
|
||||
cp ${headplane-ssh-wasm}/hp_ssh.wasm app/hp_ssh.wasm
|
||||
cp ${headplane-ssh-wasm}/wasm_exec.js app/wasm_exec.js
|
||||
pnpm build
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
{
|
||||
buildGoModule,
|
||||
go,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
pkg = builtins.fromJSON (builtins.readFile ../package.json);
|
||||
pname = "hp_ssh-wasm";
|
||||
version = pkg.version;
|
||||
wasmExecJs =
|
||||
if builtins.pathExists "${go}/share/go/lib/wasm/wasm_exec.js"
|
||||
then "${go}/share/go/lib/wasm/wasm_exec.js"
|
||||
@@ -14,8 +9,9 @@
|
||||
then "${go}/lib/wasm/wasm_exec.js"
|
||||
else "${go}/share/go/misc/wasm/wasm_exec.js";
|
||||
in
|
||||
buildGoModule rec {
|
||||
inherit pname version;
|
||||
buildGoModule {
|
||||
pname = "headplane-ssh-wasm";
|
||||
version = (builtins.fromJSON (builtins.readFile ../package.json)).version;
|
||||
src = ../.;
|
||||
subPackages = ["cmd/hp_ssh"];
|
||||
vendorHash = "sha256-3hZzDORAH+D4FW6SkOv3Enddd+q36ZALryvCPD9E5Ac=";
|
||||
Reference in New Issue
Block a user