1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00
Files
goreleaser/internal/pipe/nix/testdata/TestRunPipe/zip-with-dependencies_publish.nix.golden

66 lines
1.5 KiB
Nix
Raw Permalink Normal View History

# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{
system ? builtins.currentSystem
, lib
, fetchurl
, installShellFiles
, stdenvNoCC
, git
, makeWrapper
, unzip
}:
let
shaMap = {
i686-linux = "sha15";
x86_64-linux = "sha8";
aarch64-linux = "sha9";
x86_64-darwin = "sha10";
aarch64-darwin = "sha11";
};
urlMap = {
i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.zip";
x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.zip";
aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.zip";
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.zip";
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
};
in
stdenvNoCC.mkDerivation {
pname = "foozip";
version = "1.2.1";
src = fetchurl {
url = urlMap.${system};
sha256 = shaMap.${system};
};
sourceRoot = ".";
nativeBuildInputs = [ installShellFiles makeWrapper unzip ];
installPhase = ''
mkdir -p $out/bin
cp -vr ./foo $out/bin/foo
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath ([ git ])}
'';
system = system;
meta = {
description = "my test";
homepage = "https://goreleaser.com";
license = lib.licenses.mit;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
platforms = [
"aarch64-darwin"
"aarch64-linux"
"i686-linux"
"x86_64-darwin"
"x86_64-linux"
];
};
}