mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
fix(nix): improve generated derivations (#4582)
- 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>
This commit is contained in:
parent
d3383153ee
commit
7f95ff0a9a
@ -503,10 +503,10 @@ func binInstallFormats(nix config.Nix) []string {
|
|||||||
var depStrings []string
|
var depStrings []string
|
||||||
|
|
||||||
if len(darwinDeps) > 0 {
|
if len(darwinDeps) > 0 {
|
||||||
depStrings = append(depStrings, fmt.Sprintf("lib.optionals stdenv.isDarwin [ %s ]", strings.Join(darwinDeps, " ")))
|
depStrings = append(depStrings, fmt.Sprintf("lib.optionals stdenvNoCC.isDarwin [ %s ]", strings.Join(darwinDeps, " ")))
|
||||||
}
|
}
|
||||||
if len(linuxDeps) > 0 {
|
if len(linuxDeps) > 0 {
|
||||||
depStrings = append(depStrings, fmt.Sprintf("lib.optionals stdenv.isLinux [ %s ]", strings.Join(linuxDeps, " ")))
|
depStrings = append(depStrings, fmt.Sprintf("lib.optionals stdenvNoCC.isLinux [ %s ]", strings.Join(linuxDeps, " ")))
|
||||||
}
|
}
|
||||||
if len(deps) > 0 {
|
if len(deps) > 0 {
|
||||||
depStrings = append(depStrings, fmt.Sprintf("[ %s ]", strings.Join(deps, " ")))
|
depStrings = append(depStrings, fmt.Sprintf("[ %s ]", strings.Join(deps, " ")))
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cp -vr ./%[1]s $out/bin/%[1]s
|
cp -vr ./%[1]s $out/bin/%[1]s
|
||||||
wrapProgram $out/bin/%[1]s --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isDarwin [ foo bar ])}
|
wrapProgram $out/bin/%[1]s --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ foo bar ])}
|
@ -1,2 +1,2 @@
|
|||||||
cp -vr ./%[1]s $out/bin/%[1]s
|
cp -vr ./%[1]s $out/bin/%[1]s
|
||||||
wrapProgram $out/bin/%[1]s --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isLinux [ foo bar ])}
|
wrapProgram $out/bin/%[1]s --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isLinux [ foo bar ])}
|
@ -1,2 +1,2 @@
|
|||||||
cp -vr ./%[1]s $out/bin/%[1]s
|
cp -vr ./%[1]s $out/bin/%[1]s
|
||||||
wrapProgram $out/bin/%[1]s --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isDarwin [ bar ] ++ lib.optionals stdenv.isLinux [ foo ] ++ [ fish ])}
|
wrapProgram $out/bin/%[1]s --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ bar ] ++ lib.optionals stdenvNoCC.isLinux [ foo ] ++ [ fish ])}
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -34,7 +33,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -49,7 +48,7 @@ pkgs.stdenvNoCC.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -vr ./foo $out/bin/foo
|
cp -vr ./foo $out/bin/foo
|
||||||
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isDarwin [ chromium ] ++ lib.optionals stdenv.isLinux [ ttyd ] ++ [ fish bash ])}
|
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ chromium ] ++ lib.optionals stdenvNoCC.isLinux [ ttyd ] ++ [ fish bash ])}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system = system;
|
system = system;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -34,7 +33,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -49,7 +48,7 @@ pkgs.stdenvNoCC.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -vr ./foo $out/bin/foo
|
cp -vr ./foo $out/bin/foo
|
||||||
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isDarwin [ chromium ] ++ lib.optionals stdenv.isLinux [ ttyd ] ++ [ fish bash ])}
|
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ chromium ] ++ lib.optionals stdenvNoCC.isLinux [ ttyd ] ++ [ fish bash ])}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system = system;
|
system = system;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -34,7 +33,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -49,7 +48,7 @@ pkgs.stdenvNoCC.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -vr ./foo $out/bin/foo
|
cp -vr ./foo $out/bin/foo
|
||||||
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isDarwin [ chromium ] ++ lib.optionals stdenv.isLinux [ ttyd ] ++ [ fish bash ])}
|
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ chromium ] ++ lib.optionals stdenvNoCC.isLinux [ ttyd ] ++ [ fish bash ])}
|
||||||
installManPage ./manpages/foo.1.gz
|
installManPage ./manpages/foo.1.gz
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -34,7 +33,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -49,7 +48,7 @@ pkgs.stdenvNoCC.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -vr ./foo $out/bin/foo
|
cp -vr ./foo $out/bin/foo
|
||||||
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isDarwin [ chromium ] ++ lib.optionals stdenv.isLinux [ ttyd ] ++ [ fish bash ])}
|
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ chromium ] ++ lib.optionals stdenvNoCC.isLinux [ ttyd ] ++ [ fish bash ])}
|
||||||
installManPage ./manpages/foo.1.gz
|
installManPage ./manpages/foo.1.gz
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foo";
|
pname = "foo";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -18,7 +18,7 @@ let
|
|||||||
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz";
|
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "partial";
|
pname = "partial";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -18,7 +18,7 @@ let
|
|||||||
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz";
|
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "partial";
|
pname = "partial";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "doesnotmatter";
|
pname = "doesnotmatter";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "doesnotmatter";
|
pname = "doesnotmatter";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -24,7 +24,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_all.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_all.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "unibin-replaces";
|
pname = "unibin-replaces";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -24,7 +24,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_all.tar.gz";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_all.tar.gz";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "unibin-replaces";
|
pname = "unibin-replaces";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -31,7 +31,7 @@ let
|
|||||||
aarch64-darwin = "./foo_arm64";
|
aarch64-darwin = "./foo_arm64";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "wrapped-in-dir";
|
pname = "wrapped-in-dir";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, stdenvNoCC
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
shaMap = {
|
shaMap = {
|
||||||
@ -31,7 +31,7 @@ let
|
|||||||
aarch64-darwin = "./foo_arm64";
|
aarch64-darwin = "./foo_arm64";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "wrapped-in-dir";
|
pname = "wrapped-in-dir";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -23,7 +22,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foozip";
|
pname = "foozip";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -23,7 +22,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foozip";
|
pname = "foozip";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -28,7 +27,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foozip";
|
pname = "foozip";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -28,7 +27,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foozip";
|
pname = "foozip";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -27,7 +26,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foozip";
|
pname = "foozip";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
@ -27,7 +26,7 @@ let
|
|||||||
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "foozip";
|
pname = "foozip";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,14 +2,13 @@
|
|||||||
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
||||||
{
|
{
|
||||||
system ? builtins.currentSystem
|
system ? builtins.currentSystem
|
||||||
, pkgs
|
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
{{- if .Dependencies }}
|
{{- if .Dependencies }}
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
{{- end }}
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
{{- end -}}
|
|
||||||
{{- range $index, $element := .Dependencies }}
|
{{- range $index, $element := .Dependencies }}
|
||||||
, {{ . -}}
|
, {{ . -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -89,7 +88,7 @@ let
|
|||||||
};
|
};
|
||||||
{{- end }}
|
{{- end }}
|
||||||
in
|
in
|
||||||
pkgs.stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "{{ .Name }}";
|
pname = "{{ .Name }}";
|
||||||
version = "{{ .Version }}";
|
version = "{{ .Version }}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user