github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/testdata/TestRunPipe/zip-and-tar_build.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 , unzip 10 }: 11 let 12 shaMap = { 13 i686-linux = "0000000000000000000000000000000000000000000000000000"; 14 aarch64-linux = "0000000000000000000000000000000000000000000000000000"; 15 aarch64-darwin = "0000000000000000000000000000000000000000000000000000"; 16 }; 17 18 urlMap = { 19 i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.tar.gz"; 20 aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.tar.gz"; 21 aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip"; 22 }; 23 in 24 stdenvNoCC.mkDerivation { 25 pname = "foozip"; 26 version = "1.2.1"; 27 src = fetchurl { 28 url = urlMap.${system}; 29 sha256 = shaMap.${system}; 30 }; 31 32 sourceRoot = "."; 33 34 nativeBuildInputs = [ installShellFiles unzip ]; 35 36 installPhase = '' 37 mkdir -p $out/bin 38 cp -vr ./foo $out/bin/foo 39 ''; 40 41 system = system; 42 43 meta = { 44 description = "my test"; 45 homepage = "https://goreleaser.com"; 46 license = lib.licenses.mit; 47 48 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 49 50 platforms = [ 51 "aarch64-darwin" 52 "aarch64-linux" 53 "i686-linux" 54 ]; 55 }; 56 }