openlist: 4.0.1 -> 4.0.8 (#422409)

authored by Wolfgang Walther and committed by GitHub ed011191 d30c21d3

+19 -25
+3 -3
pkgs/by-name/op/openlist/frontend.nix
··· 10 10 11 11 stdenvNoCC.mkDerivation (finalAttrs: { 12 12 pname = "openlist-frontend"; 13 - version = "4.0.1"; 13 + version = "4.0.8"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "OpenListTeam"; 17 17 repo = "OpenList-Frontend"; 18 18 tag = "v${finalAttrs.version}"; 19 - hash = "sha256-WflnK/DXg2kmTcOD97jiZP8kb/cEdW7SrVnNQLrWKjA="; 19 + hash = "sha256-q/FZ9SMdNDPHmZlNeh8GcyRE6iwvI7X+Ic8InerjOps="; 20 20 }; 21 21 22 22 i18n = fetchzip { 23 23 url = "https://github.com/OpenListTeam/OpenList-Frontend/releases/download/v${finalAttrs.version}/i18n.tar.gz"; 24 - hash = "sha256-zms4x4C1CW39o/8uVm5gbasKCJQx6Oh3h66BHF1vnWY="; 24 + hash = "sha256-Doomu3ZkHuUI2V4rRKo8XiOgzS4c35ealOb3iMI/RMg="; 25 25 stripRoot = false; 26 26 }; 27 27
+16 -22
pkgs/by-name/op/openlist/package.nix
··· 4 4 buildGoModule, 5 5 fetchFromGitHub, 6 6 callPackage, 7 - buildPackages, 8 7 installShellFiles, 9 8 versionCheckHook, 10 9 fuse, ··· 12 11 13 12 buildGoModule (finalAttrs: { 14 13 pname = "openlist"; 15 - version = "4.0.1"; 14 + version = "4.0.8"; 16 15 17 16 src = fetchFromGitHub { 18 17 owner = "OpenListTeam"; 19 18 repo = "OpenList"; 20 19 tag = "v${finalAttrs.version}"; 21 - hash = "sha256-PqCGA2DAfZvDqdnQzqlmz2vlybYokJe+Ybzp5BcJDGU="; 20 + hash = "sha256-pihGG9vm0wyny9DuN110Nb6cwxvG5oP2RqcoWSOWRes="; 22 21 # populate values that require us to use git. By doing this in postFetch we 23 22 # can delete .git afterwards and maintain better reproducibility of the src. 24 23 leaveDotGit = true; ··· 34 33 frontend = callPackage ./frontend.nix { }; 35 34 36 35 proxyVendor = true; 37 - vendorHash = "sha256-e1glgNp5aYl1cEuLdMMLa8sE9lSuiLVdPCX9pek5grE="; 36 + vendorHash = "sha256-WnA5iDXCdBlBhnCxvD0PQYfu3bePAv9tJ3WNUTFNURo="; 38 37 39 38 buildInputs = [ fuse ]; 40 39 ··· 42 41 43 42 ldflags = [ 44 43 "-s" 45 - "-X \"github.com/OpenListTeam/OpenList/internal/conf.GitAuthor=The OpenList Projects Contributors <noreply@openlist.team>\"" 46 - "-X github.com/OpenListTeam/OpenList/internal/conf.Version=${finalAttrs.version}" 47 - "-X github.com/OpenListTeam/OpenList/internal/conf.WebVersion=${finalAttrs.frontend.version}" 44 + "-X \"github.com/OpenListTeam/OpenList/v4/internal/conf.GitAuthor=The OpenList Projects Contributors <noreply@openlist.team>\"" 45 + "-X github.com/OpenListTeam/OpenList/v4/internal/conf.Version=${finalAttrs.version}" 46 + "-X github.com/OpenListTeam/OpenList/v4/internal/conf.WebVersion=${finalAttrs.frontend.version}" 48 47 ]; 49 48 50 49 preConfigure = '' ··· 53 52 ''; 54 53 55 54 preBuild = '' 56 - ldflags+=" -X \"github.com/OpenListTeam/OpenList/internal/conf.BuiltAt=$(<SOURCE_DATE_EPOCH)\"" 57 - ldflags+=" -X github.com/OpenListTeam/OpenList/internal/conf.GitCommit=$(<COMMIT)" 55 + ldflags+=" -X \"github.com/OpenListTeam/OpenList/v4/internal/conf.BuiltAt=$(<SOURCE_DATE_EPOCH)\"" 56 + ldflags+=" -X github.com/OpenListTeam/OpenList/v4/internal/conf.GitCommit=$(<COMMIT)" 58 57 ''; 59 58 60 59 checkFlags = ··· 71 70 72 71 nativeBuildInputs = [ installShellFiles ]; 73 72 74 - postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( 75 - let 76 - emulator = stdenv.hostPlatform.emulator buildPackages; 77 - in 78 - '' 79 - installShellCompletion --cmd OpenList \ 80 - --bash <(${emulator} $out/bin/OpenList completion bash) \ 81 - --fish <(${emulator} $out/bin/OpenList completion fish) \ 82 - --zsh <(${emulator} $out/bin/OpenList completion zsh) 73 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 74 + installShellCompletion --cmd OpenList \ 75 + --bash <($out/bin/OpenList completion bash) \ 76 + --fish <($out/bin/OpenList completion fish) \ 77 + --zsh <($out/bin/OpenList completion zsh) 83 78 84 - mkdir $out/share/powershell/ -p 85 - ${emulator} $out/bin/OpenList completion powershell > $out/share/powershell/OpenList.Completion.ps1 86 - '' 87 - ); 79 + mkdir $out/share/powershell/ -p 80 + $out/bin/OpenList completion powershell > $out/share/powershell/OpenList.Completion.ps1 81 + ''; 88 82 89 83 doInstallCheck = true; 90 84 nativeInstallCheckInputs = [ versionCheckHook ];