mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-12 02:37:18 +00:00
ios-safari-remote-debug: init at unstable-2024-09-09 (#326885)
This commit is contained in:
commit
bfe50da6e5
pkgs/by-name/io/ios-safari-remote-debug
@ -0,0 +1,25 @@
|
||||
From 16ea1a197c4b154fcd481728fbea24a4722ba5d3 Mon Sep 17 00:00:00 2001
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Date: Sat, 13 Jul 2024 18:44:36 +0300
|
||||
Subject: [PATCH] Add permissions to the output directory.
|
||||
|
||||
---
|
||||
build/build.go | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/build/build.go b/build/build.go
|
||||
index 3ee59ab..97932ed 100644
|
||||
--- a/build/build.go
|
||||
+++ b/build/build.go
|
||||
@@ -67,7 +67,7 @@ func Build(cloneDir string, outputDir string) error {
|
||||
log.Debug().TimeDiff("getRelevantFiles", time.Now(), getRelevantFilesTime).Send()
|
||||
bundleTime := time.Now()
|
||||
|
||||
- cp.Copy("views", outputDir)
|
||||
+ cp.Copy("views", outputDir, cp.Options{PermissionControl: cp.AddPermission(0200)})
|
||||
os.Mkdir(fmt.Sprintf("%s/debug", outputDir), os.ModePerm)
|
||||
os.Mkdir(fmt.Sprintf("%s/debug/Lib", outputDir), os.ModePerm)
|
||||
os.Mkdir(fmt.Sprintf("%s/debug/Protocols", outputDir), os.ModePerm)
|
||||
--
|
||||
2.45.2
|
||||
|
40
pkgs/by-name/io/ios-safari-remote-debug/package.nix
Normal file
40
pkgs/by-name/io/ios-safari-remote-debug/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitea,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ios-safari-remote-debug";
|
||||
version = "unstable-2024-09-09";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.gay";
|
||||
owner = "besties";
|
||||
repo = "ios-safari-remote-debug";
|
||||
rev = "b3c69873997c08fce83c48a5ab42f5a2354efdf2";
|
||||
hash = "sha256-Hh/CeH0ba4uPMlEo+OZ3w36pTpsW6OLtYIE5v6dkUjo=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-O8Dr4UAISZmCUGao0cBnAx4dUJm6+u4Swiw0H5NVeeA=";
|
||||
|
||||
patches = [ ./add-permissions-to-the-output-directory.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace build/build.go \
|
||||
--replace-fail 'cp.Copy("' 'cp.Copy("${placeholder "out"}/share/${pname}/'
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
mkdir -p $out/share/${pname}
|
||||
cp -r injectedCode views $out/share/${pname}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Remote debugger for iOS Safari";
|
||||
homepage = "https://git.gay/besties/ios-safari-remote-debug";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
mainProgram = "ios-safari-remote-debug";
|
||||
maintainers = with lib.maintainers; [ paveloom ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user