Loading pkgs/by-name/co/colorstorm/0001-fix-segfault.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line diff --git a/src/templator.zig b/src/templator.zig index 5630a04..0dc8ca7 100644 --- a/src/templator.zig +++ b/src/templator.zig @@ -77,7 +77,6 @@ pub fn parse_themes(f: std.fs.File) ![]Theme { } const parsed = try std.json.parseFromSlice([]Theme, a, list.items, .{}); - defer parsed.deinit(); const themes = parsed.value; return themes; pkgs/by-name/co/colorstorm/package.nix +15 −6 Original line number Diff line number Diff line Loading @@ -2,22 +2,31 @@ lib, stdenv, fetchFromGitHub, zig_0_9, zig_0_13, }: stdenv.mkDerivation (finalAttrs: { pname = "colorstorm"; version = "2.0.0"; # last tagged release is three years old and requires outdated Zig 0.9 # new release requested in: https://github.com/benbusby/colorstorm/issues/16 version = "2.0.0-unstable-2025-01-17"; src = fetchFromGitHub { owner = "benbusby"; repo = "colorstorm"; rev = "v${finalAttrs.version}"; hash = "sha256-6+P+QQpP1jxsydqhVrZkjl1gaqNcx4kS2994hOBhtu8="; rev = "e645c4293fb5f72968038dac99e0b8dab3db194f"; hash = "sha256-6D+aNcjJksv7E9RJB9fnzgzvGoUPXV4Shz5wLu5YHtg="; }; patches = [ # Fixes a use-after-free segfault. # See https://github.com/benbusby/colorstorm/pull/15#discussion_r1930406581 # and upstream PR https://github.com/NixOS/nixpkgs/pull/377279 ./0001-fix-segfault.patch ]; nativeBuildInputs = [ zig_0_9.hook zig_0_13.hook ]; meta = { Loading @@ -25,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/benbusby/colorstorm"; license = lib.licenses.mit; maintainers = [ ]; inherit (zig_0_9.meta) platforms; inherit (zig_0_13.meta) platforms; mainProgram = "colorstorm"; }; }) Loading
pkgs/by-name/co/colorstorm/0001-fix-segfault.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line diff --git a/src/templator.zig b/src/templator.zig index 5630a04..0dc8ca7 100644 --- a/src/templator.zig +++ b/src/templator.zig @@ -77,7 +77,6 @@ pub fn parse_themes(f: std.fs.File) ![]Theme { } const parsed = try std.json.parseFromSlice([]Theme, a, list.items, .{}); - defer parsed.deinit(); const themes = parsed.value; return themes;
pkgs/by-name/co/colorstorm/package.nix +15 −6 Original line number Diff line number Diff line Loading @@ -2,22 +2,31 @@ lib, stdenv, fetchFromGitHub, zig_0_9, zig_0_13, }: stdenv.mkDerivation (finalAttrs: { pname = "colorstorm"; version = "2.0.0"; # last tagged release is three years old and requires outdated Zig 0.9 # new release requested in: https://github.com/benbusby/colorstorm/issues/16 version = "2.0.0-unstable-2025-01-17"; src = fetchFromGitHub { owner = "benbusby"; repo = "colorstorm"; rev = "v${finalAttrs.version}"; hash = "sha256-6+P+QQpP1jxsydqhVrZkjl1gaqNcx4kS2994hOBhtu8="; rev = "e645c4293fb5f72968038dac99e0b8dab3db194f"; hash = "sha256-6D+aNcjJksv7E9RJB9fnzgzvGoUPXV4Shz5wLu5YHtg="; }; patches = [ # Fixes a use-after-free segfault. # See https://github.com/benbusby/colorstorm/pull/15#discussion_r1930406581 # and upstream PR https://github.com/NixOS/nixpkgs/pull/377279 ./0001-fix-segfault.patch ]; nativeBuildInputs = [ zig_0_9.hook zig_0_13.hook ]; meta = { Loading @@ -25,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/benbusby/colorstorm"; license = lib.licenses.mit; maintainers = [ ]; inherit (zig_0_9.meta) platforms; inherit (zig_0_13.meta) platforms; mainProgram = "colorstorm"; }; })