github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/testdata/TestRunPipe/zip-with-dependencies_publish.nix.golden (about) 1 # This file was generated by GoReleaser. DO NOT EDIT. 2 # vim: set ft=nix ts=2 sw=2 sts=2 et sta 3 { 4 system ? builtins.currentSystem 5 , lib 6 , fetchurl 7 , installShellFiles 8 , stdenvNoCC 9 , git 10 , makeWrapper 11 , unzip 12 }: 13 let 14 shaMap = { 15 i686-linux = "sha15"; 16 x86_64-linux = "sha8"; 17 aarch64-linux = "sha9"; 18 x86_64-darwin = "sha10"; 19 aarch64-darwin = "sha11"; 20 }; 21 22 urlMap = { 23 i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.zip"; 24 x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.zip"; 25 aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.zip"; 26 x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.zip"; 27 aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip"; 28 }; 29 in 30 stdenvNoCC.mkDerivation { 31 pname = "foozip"; 32 version = "1.2.1"; 33 src = fetchurl { 34 url = urlMap.${system}; 35 sha256 = shaMap.${system}; 36 }; 37 38 sourceRoot = "."; 39 40 nativeBuildInputs = [ installShellFiles makeWrapper unzip ]; 41 42 installPhase = '' 43 mkdir -p $out/bin 44 cp -vr ./foo $out/bin/foo 45 wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath ([ git ])} 46 ''; 47 48 system = system; 49 50 meta = { 51 description = "my test"; 52 homepage = "https://goreleaser.com"; 53 license = lib.licenses.mit; 54 55 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 56 57 platforms = [ 58 "aarch64-darwin" 59 "aarch64-linux" 60 "i686-linux" 61 "x86_64-darwin" 62 "x86_64-linux" 63 ]; 64 }; 65 }