colorstorm: 2.0.0 -> 2.0.0-unstable-2025-01-17
This commit is contained in:
parent
d6dcd1a680
commit
837da5afc8
12
pkgs/by-name/co/colorstorm/0001-fix-segfault.patch
Normal file
12
pkgs/by-name/co/colorstorm/0001-fix-segfault.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
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;
|
||||||
@ -2,22 +2,31 @@
|
|||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
zig_0_9,
|
zig_0_13,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "colorstorm";
|
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 {
|
src = fetchFromGitHub {
|
||||||
owner = "benbusby";
|
owner = "benbusby";
|
||||||
repo = "colorstorm";
|
repo = "colorstorm";
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "e645c4293fb5f72968038dac99e0b8dab3db194f";
|
||||||
hash = "sha256-6+P+QQpP1jxsydqhVrZkjl1gaqNcx4kS2994hOBhtu8=";
|
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 = [
|
nativeBuildInputs = [
|
||||||
zig_0_9.hook
|
zig_0_13.hook
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -25,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
homepage = "https://github.com/benbusby/colorstorm";
|
homepage = "https://github.com/benbusby/colorstorm";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
inherit (zig_0_9.meta) platforms;
|
inherit (zig_0_13.meta) platforms;
|
||||||
mainProgram = "colorstorm";
|
mainProgram = "colorstorm";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user