github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/testdata/TestRunPipe/open-pr_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 }: 10 let 11 shaMap = { 12 i686-linux = "0000000000000000000000000000000000000000000000000000"; 13 x86_64-linux = "0000000000000000000000000000000000000000000000000000"; 14 armv6l-linux = "0000000000000000000000000000000000000000000000000000"; 15 armv7l-linux = "0000000000000000000000000000000000000000000000000000"; 16 aarch64-linux = "0000000000000000000000000000000000000000000000000000"; 17 x86_64-darwin = "0000000000000000000000000000000000000000000000000000"; 18 aarch64-darwin = "0000000000000000000000000000000000000000000000000000"; 19 }; 20 21 urlMap = { 22 i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.tar.gz"; 23 x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.tar.gz"; 24 armv6l-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm6.tar.gz"; 25 armv7l-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm7.tar.gz"; 26 aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.tar.gz"; 27 x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz"; 28 aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz"; 29 }; 30 in 31 stdenvNoCC.mkDerivation { 32 pname = "foo"; 33 version = "1.2.1"; 34 src = fetchurl { 35 url = urlMap.${system}; 36 sha256 = shaMap.${system}; 37 }; 38 39 sourceRoot = "."; 40 41 nativeBuildInputs = [ installShellFiles ]; 42 43 installPhase = '' 44 mkdir -p $out/bin 45 cp -vr ./foo $out/bin/foo 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 "armv6l-linux" 61 "armv7l-linux" 62 "i686-linux" 63 "x86_64-darwin" 64 "x86_64-linux" 65 ]; 66 }; 67 }