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