diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/as')
-rw-r--r-- | nixpkgs/pkgs/by-name/as/ascii-draw/fix_palette_data_dir.patch | 38 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/as/ascii-draw/package.nix | 8 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/as/asm-lsp/package.nix | 11 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/as/assemblyscript/package.nix | 25 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/as/ast-grep/package.nix | 6 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/as/async-profiler/package.nix | 46 |
6 files changed, 84 insertions, 50 deletions
diff --git a/nixpkgs/pkgs/by-name/as/ascii-draw/fix_palette_data_dir.patch b/nixpkgs/pkgs/by-name/as/ascii-draw/fix_palette_data_dir.patch deleted file mode 100644 index 64cf5af6d9b3..000000000000 --- a/nixpkgs/pkgs/by-name/as/ascii-draw/fix_palette_data_dir.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/src/window.py b/src/window.py -index adc6d6d..1cb6bec 100644 ---- a/src/window.py -+++ b/src/window.py -@@ -34,6 +34,15 @@ import unicodedata - import emoji - import os - -+def get_data_dir(): -+ xdg_data_home = os.environ.get('XDG_DATA_HOME') -+ if xdg_data_home and xdg_data_home.strip(): -+ data_dir = os.path.join(xdg_data_home, 'ascii-draw', 'data') -+ else: -+ home = os.path.expanduser("~") -+ data_dir = os.path.join(home, '.local', 'share', 'ascii-draw', 'data') -+ return data_dir -+ - @Gtk.Template(resource_path='/io/github/nokse22/asciidraw/ui/window.ui') - class AsciiDrawWindow(Adw.ApplicationWindow): - __gtype_name__ = 'AsciiDrawWindow' -@@ -266,7 +275,7 @@ class AsciiDrawWindow(Adw.ApplicationWindow): - - self.palettes = [] - -- directory_path = "/var/data/palettes" -+ directory_path = f"{get_data_dir()}/palettes" - os.makedirs(directory_path, exist_ok=True) - - for filename in os.listdir(directory_path): -@@ -316,7 +325,7 @@ class AsciiDrawWindow(Adw.ApplicationWindow): - self.char_carousel_go_next.set_sensitive(True) - - def save_new_palette(self, palette): -- with open(f"/var/data/palettes/{palette.name}.txt", 'w') as file: -+ with open(f"{get_data_dir()}/palettes/{palette.name}.txt", 'w') as file: - file.write(palette.chars) - - @Gtk.Template.Callback("char_pages_go_back") diff --git a/nixpkgs/pkgs/by-name/as/ascii-draw/package.nix b/nixpkgs/pkgs/by-name/as/ascii-draw/package.nix index 838eb0118371..801ec0da0d56 100644 --- a/nixpkgs/pkgs/by-name/as/ascii-draw/package.nix +++ b/nixpkgs/pkgs/by-name/as/ascii-draw/package.nix @@ -12,20 +12,16 @@ python3Packages.buildPythonApplication rec { pname = "ascii-draw"; - version = "0.3.0"; + version = "0.3.2"; pyproject = false; src = fetchFromGitHub { owner = "Nokse22"; repo = "ascii-draw"; rev = "v${version}"; - hash = "sha256-vI+j8OuQ3b6La0+7wWeoUtBal24dazlN/T0Bng5TgMo="; + hash = "sha256-opjYgLfHfKSbipB1HRxfBkgp+9c4yqIL1fiUOcFmCMc="; }; - # Temporary fix for autosaving to flatpak directory - # https://github.com/Nokse22/ascii-draw/issues/31 - patches = [ ./fix_palette_data_dir.patch ]; - nativeBuildInputs = [ meson ninja diff --git a/nixpkgs/pkgs/by-name/as/asm-lsp/package.nix b/nixpkgs/pkgs/by-name/as/asm-lsp/package.nix index b68123dd42b1..9a44f68ca64f 100644 --- a/nixpkgs/pkgs/by-name/as/asm-lsp/package.nix +++ b/nixpkgs/pkgs/by-name/as/asm-lsp/package.nix @@ -6,7 +6,7 @@ }: let pname = "asm-lsp"; - version = "0.4.2"; + version = "0.6.0"; in rustPlatform.buildRustPackage { inherit pname version; @@ -15,7 +15,7 @@ rustPlatform.buildRustPackage { owner = "bergercookie"; repo = "asm-lsp"; rev = "v${version}"; - hash = "sha256-EGgYOU6y23ULjnMGNjYhgF0JMPgvRuQ4UOWqwJxhBpU="; + hash = "sha256-vOkuTJFP2zme8S+u5j1TXt6BXnwtASRVH4Dre9g1dtk="; }; nativeBuildInputs = [ @@ -26,7 +26,12 @@ rustPlatform.buildRustPackage { openssl ]; - cargoHash = "sha256-x8Cj39Wki+pdoNIO8QPGK29KFJrHtDMoZJIXFEldno0="; + cargoHash = "sha256-lmOnBcLWfTCuQcPiRmPoFD/QvagfkApFP6/h1ot7atU="; + + # tests expect ~/.cache/asm-lsp to be writable + preCheck = '' + export HOME=$(mktemp -d) + ''; meta = { description = "Language server for NASM/GAS/GO Assembly"; diff --git a/nixpkgs/pkgs/by-name/as/assemblyscript/package.nix b/nixpkgs/pkgs/by-name/as/assemblyscript/package.nix new file mode 100644 index 000000000000..b0fd15d47941 --- /dev/null +++ b/nixpkgs/pkgs/by-name/as/assemblyscript/package.nix @@ -0,0 +1,25 @@ +{ lib +, buildNpmPackage +, fetchFromGitHub +}: + +buildNpmPackage rec { + pname = "assemblyscript"; + version = "0.27.23"; + + src = fetchFromGitHub { + owner = "AssemblyScript"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-pKb46AfL5MGKiH1AjyPeHw7ZeLnIiPYmf8b2bOkuRe0="; + }; + + npmDepsHash = "sha256-io/3T0LE1kupjtMg8rpQlRmIn048X0jqhKKj/W7Ilo0="; + + meta = with lib; { + homepage = "https://github.com/AssemblyScript/${pname}"; + description = "A TypeScript-like language for WebAssembly"; + license = licenses.asl20; + maintainers = with maintainers; [ lucperkins ]; + }; +} diff --git a/nixpkgs/pkgs/by-name/as/ast-grep/package.nix b/nixpkgs/pkgs/by-name/as/ast-grep/package.nix index 153c14462963..4e001f3445a6 100644 --- a/nixpkgs/pkgs/by-name/as/ast-grep/package.nix +++ b/nixpkgs/pkgs/by-name/as/ast-grep/package.nix @@ -7,16 +7,16 @@ rustPlatform.buildRustPackage rec { pname = "ast-grep"; - version = "0.21.1"; + version = "0.22.3"; src = fetchFromGitHub { owner = "ast-grep"; repo = "ast-grep"; rev = version; - hash = "sha256-hR6DPkApHDlg91O040s+3FL2mEM3FH61pnyCBwwE6tw="; + hash = "sha256-Q2xVB9GZBtXx67rKpeTpy1llXCBpgn9vdZmYkQVHtp8="; }; - cargoHash = "sha256-Iqq7F8PCrNhFGvrfbYQn3mdOwiokCmTKCaXjOHvD8V0="; + cargoHash = "sha256-0N98WvNLlflNCu7I2nHDSgFHDmbMVqwu4YkqA9GNSwM="; nativeBuildInputs = [ installShellFiles ]; diff --git a/nixpkgs/pkgs/by-name/as/async-profiler/package.nix b/nixpkgs/pkgs/by-name/as/async-profiler/package.nix new file mode 100644 index 000000000000..4e7f2c1761db --- /dev/null +++ b/nixpkgs/pkgs/by-name/as/async-profiler/package.nix @@ -0,0 +1,46 @@ +{ + lib, + stdenv, + fetchFromGitHub, + jdk, + makeWrapper, +}: +stdenv.mkDerivation rec { + pname = "async-profiler"; + version = "3.0"; + + src = fetchFromGitHub { + owner = "jvm-profiling-tools"; + repo = "async-profiler"; + rev = "v${version}"; + hash = "sha256-0CCJoRjRLq4LpiRD0ibzK8So9qSQymePCTYUI60Oy2k="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + buildInputs = [ jdk ]; + + installPhase = + let + ext = stdenv.hostPlatform.extensions.sharedLibrary; + in + '' + runHook preInstall + install -D build/bin/asprof "$out/bin/async-profiler" + install -D build/lib/libasyncProfiler${ext} "$out/lib/libasyncProfiler${ext}" + runHook postInstall + ''; + + fixupPhase = '' + wrapProgram $out/bin/async-profiler --prefix PATH : ${lib.makeBinPath [ jdk ]} + ''; + + meta = with lib; { + description = "A low overhead sampling profiler for Java that does not suffer from Safepoint bias problem"; + homepage = "https://github.com/jvm-profiling-tools/async-profiler"; + license = licenses.asl20; + maintainers = with maintainers; [ mschuwalow ]; + platforms = platforms.all; + mainProgram = "async-profiler"; + }; +} |