You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-05 00:59:04 +02:00
- use stdenvNoCC instead of pkgs.stdenvNoCC
- always include stdenvNoCC, even if no deps
- use stdenvNoCC.is(Darwin/Linux) instead of stdenv's
refs #4358
refs 003a8815
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
65 lines
1.8 KiB
Nix
65 lines
1.8 KiB
Nix
# 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
|
|
}:
|
|
let
|
|
shaMap = {
|
|
i686-linux = "0000000000000000000000000000000000000000000000000000";
|
|
x86_64-linux = "0000000000000000000000000000000000000000000000000000";
|
|
armv6l-linux = "0000000000000000000000000000000000000000000000000000";
|
|
armv7l-linux = "0000000000000000000000000000000000000000000000000000";
|
|
aarch64-linux = "0000000000000000000000000000000000000000000000000000";
|
|
x86_64-darwin = "0000000000000000000000000000000000000000000000000000";
|
|
aarch64-darwin = "0000000000000000000000000000000000000000000000000000";
|
|
};
|
|
|
|
urlMap = {
|
|
i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.tar.gz";
|
|
x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.tar.gz";
|
|
armv6l-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm6.tar.gz";
|
|
armv7l-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm7.tar.gz";
|
|
aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.tar.gz";
|
|
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz";
|
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
|
};
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "doesnotmatter";
|
|
version = "1.2.1";
|
|
src = fetchurl {
|
|
url = urlMap.${system};
|
|
sha256 = shaMap.${system};
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -vr ./foo $out/bin/foo
|
|
'';
|
|
|
|
system = system;
|
|
|
|
meta = {
|
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
|
|
platforms = [
|
|
"aarch64-darwin"
|
|
"aarch64-linux"
|
|
"armv6l-linux"
|
|
"armv7l-linux"
|
|
"i686-linux"
|
|
"x86_64-darwin"
|
|
"x86_64-linux"
|
|
];
|
|
};
|
|
}
|