Skip to content

Commit dda3dcd

Browse files
authored
odin: dev-2025-01 -> dev-2025-04 (#404919)
2 parents c6bee51 + 205cb96 commit dda3dcd

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

pkgs/by-name/od/odin/package.nix

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
{
2-
fetchFromGitHub,
32
lib,
43
llvmPackages,
4+
fetchFromGitHub,
55
makeBinaryWrapper,
6-
nix-update-script,
76
which,
7+
nix-update-script,
88
}:
99

1010
let
1111
inherit (llvmPackages) stdenv;
1212
in
13-
stdenv.mkDerivation {
13+
stdenv.mkDerivation (finalAttrs: {
1414
pname = "odin";
15-
version = "dev-2025-01";
15+
version = "dev-2025-04";
1616

1717
src = fetchFromGitHub {
1818
owner = "odin-lang";
1919
repo = "Odin";
20-
rev = "dev-2025-01";
21-
hash = "sha256-GXea4+OIFyAhTqmDh2q+ewTUqI92ikOsa2s83UH2r58=";
20+
tag = finalAttrs.version;
21+
hash = "sha256-dVC7MgaNdgKy3X9OE5ZcNCPnuDwqXszX9iAoUglfz2k=";
2222
};
2323

2424
patches = [
2525
./darwin-remove-impure-links.patch
2626
];
2727

28-
LLVM_CONFIG = "${llvmPackages.llvm.dev}/bin/llvm-config";
28+
postPatch = ''
29+
patchShebangs ./build_odin.sh
30+
'';
31+
32+
LLVM_CONFIG = lib.getExe' llvmPackages.llvm.dev "llvm-config";
2933

3034
dontConfigure = true;
3135

@@ -72,6 +76,7 @@ stdenv.mkDerivation {
7276
description = "Fast, concise, readable, pragmatic and open sourced programming language";
7377
downloadPage = "https://github.com/odin-lang/Odin";
7478
homepage = "https://odin-lang.org/";
79+
changelog = "https://github.com/odin-lang/Odin/releases/tag/${finalAttrs.version}";
7580
license = lib.licenses.bsd3;
7681
mainProgram = "odin";
7782
maintainers = with lib.maintainers; [
@@ -80,4 +85,4 @@ stdenv.mkDerivation {
8085
platforms = lib.platforms.unix;
8186
broken = stdenv.hostPlatform.isMusl;
8287
};
83-
}
88+
})

0 commit comments

Comments
 (0)