File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 11{
2- fetchFromGitHub ,
32 lib ,
43 llvmPackages ,
4+ fetchFromGitHub ,
55 makeBinaryWrapper ,
6- nix-update-script ,
76 which ,
7+ nix-update-script ,
88} :
99
1010let
1111 inherit ( llvmPackages ) stdenv ;
1212in
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+ } )
You can’t perform that action at this time.
0 commit comments