treewide: fix types for mkDerivation params
This commit is contained in:
parent
81ffabdf4f
commit
006242fd5a
@ -57,7 +57,7 @@ in stdenv.mkDerivation rec {
|
|||||||
++ opt midiSupport timidity
|
++ opt midiSupport timidity
|
||||||
++ opt modplugSupport libmodplug
|
++ opt modplugSupport libmodplug
|
||||||
++ opt mp3Support libmad
|
++ opt mp3Support libmad
|
||||||
++ opt musepackSupport [ libmpc libmpcdec taglib ]
|
++ stdenv.lib.optionals musepackSupport [ libmpc libmpcdec taglib ]
|
||||||
++ opt vorbisSupport libvorbis
|
++ opt vorbisSupport libvorbis
|
||||||
++ opt speexSupport speex
|
++ opt speexSupport speex
|
||||||
++ opt (ffmpegSupport && !withffmpeg4) ffmpeg
|
++ opt (ffmpegSupport && !withffmpeg4) ffmpeg
|
||||||
|
@ -48,7 +48,7 @@ in {
|
|||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ atomEnv.packages gtk3 ];
|
buildInputs = atomEnv.packages ++ [ gtk3 ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
optional = stdenv.lib.optional;
|
inherit (stdenv.lib) optional optionals;
|
||||||
in mkDerivation rec {
|
in mkDerivation rec {
|
||||||
pname = "obs-studio";
|
pname = "obs-studio";
|
||||||
version = "24.0.4";
|
version = "24.0.4";
|
||||||
@ -46,9 +46,7 @@ in mkDerivation rec {
|
|||||||
sha256 = "0m15ch2ix9qrdf1a9mj7wcpl72z3h13zx60c9q72sb1435id2g1q";
|
sha256 = "0m15ch2ix9qrdf1a9mj7wcpl72z3h13zx60c9q72sb1435id2g1q";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
pkgconfig
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [ curl
|
buildInputs = [ curl
|
||||||
fdk_aac
|
fdk_aac
|
||||||
@ -68,7 +66,7 @@ in mkDerivation rec {
|
|||||||
makeWrapper
|
makeWrapper
|
||||||
mbedtls
|
mbedtls
|
||||||
]
|
]
|
||||||
++ optional scriptingSupport [ luajit swig python3 ]
|
++ optionals scriptingSupport [ luajit swig python3 ]
|
||||||
++ optional alsaSupport alsaLib
|
++ optional alsaSupport alsaLib
|
||||||
++ optional pulseaudioSupport libpulseaudio;
|
++ optional pulseaudioSupport libpulseaudio;
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# Splicer will pull out correct variations
|
# Splicer will pull out correct variations
|
||||||
libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
|
libDeps = platform: stdenv.lib.optional enableTerminfo ncurses
|
||||||
++ stdenv.lib.optional (!enableIntegerSimple) gmp
|
++ stdenv.lib.optional (!enableIntegerSimple) gmp
|
||||||
++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
|
++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# Splicer will pull out correct variations
|
# Splicer will pull out correct variations
|
||||||
libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
|
libDeps = platform: stdenv.lib.optional enableTerminfo ncurses
|
||||||
++ stdenv.lib.optional (!enableIntegerSimple) gmp
|
++ stdenv.lib.optional (!enableIntegerSimple) gmp
|
||||||
++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv
|
++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv
|
||||||
++ stdenv.lib.optional enableDwarf elfutils;
|
++ stdenv.lib.optional enableDwarf elfutils;
|
||||||
|
@ -34,13 +34,13 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ pycrypto ecdsa ]
|
propagatedBuildInputs = [ pycrypto ecdsa ]
|
||||||
++ lib.optional withOptionalDeps [ tcpdump ipython ]
|
++ lib.optionals withOptionalDeps [ tcpdump ipython ]
|
||||||
++ lib.optional withCryptography [ cryptography ]
|
++ lib.optional withCryptography cryptography
|
||||||
++ lib.optional withVoipSupport [ sox ]
|
++ lib.optional withVoipSupport sox
|
||||||
++ lib.optional withPlottingSupport [ matplotlib ]
|
++ lib.optional withPlottingSupport matplotlib
|
||||||
++ lib.optional withGraphicsSupport [ pyx texlive.combined.scheme-minimal graphviz imagemagick ]
|
++ lib.optionals withGraphicsSupport [ pyx texlive.combined.scheme-minimal graphviz imagemagick ]
|
||||||
++ lib.optional (isPy3k && pythonOlder "3.4") [ enum34 ]
|
++ lib.optional (isPy3k && pythonOlder "3.4") enum34
|
||||||
++ lib.optional doCheck [ mock ];
|
++ lib.optional doCheck mock;
|
||||||
|
|
||||||
# Tests fail with Python 3.6 (seems to be an upstream bug, I'll investigate)
|
# Tests fail with Python 3.6 (seems to be an upstream bug, I'll investigate)
|
||||||
doCheck = if isPy3k then false else true;
|
doCheck = if isPy3k then false else true;
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
||||||
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "watson-ruby";
|
pname = "watson-ruby";
|
||||||
version = (import ./gemset.nix).watson-ruby.version;
|
version = (import ./gemset.nix).watson-ruby.version;
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
installPhase = let
|
||||||
env = bundlerEnv {
|
env = bundlerEnv {
|
||||||
name = "watson-ruby-gems-${version}";
|
name = "watson-ruby-gems-${version}";
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
};
|
};
|
||||||
|
in ''
|
||||||
phases = [ "installPhase" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s ${env}/bin/watson $out/bin/watson
|
ln -s ${env}/bin/watson $out/bin/watson
|
||||||
'';
|
'';
|
||||||
|
@ -39,11 +39,11 @@ in stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ]
|
nativeBuildInputs = [ pkgconfig ]
|
||||||
++ optionals withVulkan [ makeWrapper ];
|
++ optional withVulkan makeWrapper;
|
||||||
|
|
||||||
buildInputs = [ ffmpeg freetype libxml2 libGLU libGL python3 SDL2 which ]
|
buildInputs = [ ffmpeg freetype libxml2 libGLU libGL python3 SDL2 which ]
|
||||||
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
|
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
|
||||||
++ optionals withVulkan [ vulkan-loader ]
|
++ optional withVulkan vulkan-loader
|
||||||
++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ]
|
++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ]
|
||||||
++ optionals stdenv.isLinux [ alsaLib libdrm libpulseaudio libv4l libX11
|
++ optionals stdenv.isLinux [ alsaLib libdrm libpulseaudio libv4l libX11
|
||||||
libXdmcp libXext libXxf86vm mesa udev ];
|
libXdmcp libXext libXxf86vm mesa udev ];
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake perl ];
|
nativeBuildInputs = [ cmake perl ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zlib luajit ncurses jsoncpp libb64 openssl curl jq gcc elfutils tbb c-ares protobuf grpc
|
zlib luajit ncurses jsoncpp libb64 openssl curl jq gcc elfutils tbb c-ares protobuf grpc
|
||||||
] ++ optional (kernel != null) kernel.moduleBuildDependencies;
|
] ++ optionals (kernel != null) kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ zsh coreutils txt2tags procps ]
|
buildInputs = [ zsh coreutils txt2tags procps ]
|
||||||
++ optional stdenv.isLinux [ inetutils ];
|
++ optional stdenv.isLinux inetutils;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd doc
|
cd doc
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
|
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
pname = "lvmsync";
|
pname = "lvmsync";
|
||||||
version = (import ./gemset.nix).${pname}.version;
|
version = (import ./gemset.nix).${pname}.version;
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
name = "${pname}-${version}";
|
phases = ["installPhase"];
|
||||||
|
|
||||||
|
installPhase = let
|
||||||
env = bundlerEnv {
|
env = bundlerEnv {
|
||||||
name = "${pname}-${version}-gems";
|
name = "${pname}-${version}-gems";
|
||||||
ruby = ruby;
|
ruby = ruby;
|
||||||
@ -16,12 +16,7 @@ in stdenv.mkDerivation rec {
|
|||||||
lockfile = ./Gemfile.lock;
|
lockfile = ./Gemfile.lock;
|
||||||
gemset = ./gemset.nix;
|
gemset = ./gemset.nix;
|
||||||
};
|
};
|
||||||
|
in ''
|
||||||
buildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
phases = ["installPhase"];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${env}/bin/lvmsync $out/bin/lvmsync
|
makeWrapper ${env}/bin/lvmsync $out/bin/lvmsync
|
||||||
'';
|
'';
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pws-${(import ./gemset.nix).pws.version}";
|
name = "pws-${(import ./gemset.nix).pws.version}";
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
phases = ["installPhase"];
|
||||||
|
|
||||||
|
installPhase = let
|
||||||
env = bundlerEnv {
|
env = bundlerEnv {
|
||||||
name = "${name}-gems";
|
name = "${name}-gems";
|
||||||
|
|
||||||
@ -10,12 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
};
|
};
|
||||||
|
in ''
|
||||||
buildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
phases = ["installPhase"];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${env}/bin/pws $out/bin/pws \
|
makeWrapper ${env}/bin/pws $out/bin/pws \
|
||||||
--set PATH '"${xsel}/bin/:$PATH"'
|
--set PATH '"${xsel}/bin/:$PATH"'
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
|
{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation {
|
||||||
name = "maphosts-${env.gems.maphosts.version}";
|
name = "maphosts-${env.gems.maphosts.version}";
|
||||||
|
|
||||||
|
phases = ["installPhase"];
|
||||||
|
|
||||||
|
installPhase = let
|
||||||
env = bundlerEnv {
|
env = bundlerEnv {
|
||||||
name = "maphosts-gems";
|
name = "maphosts-gems";
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
};
|
};
|
||||||
|
in ''
|
||||||
phases = ["installPhase"];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
|
ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
|
||||||
'';
|
'';
|
||||||
|
@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ libpcap texinfo ]
|
buildInputs = [ libpcap texinfo ]
|
||||||
++ stdenv.lib.optional gnupgSupport [ gnupg gpgme.dev ]
|
++ stdenv.lib.optionals gnupgSupport [ gnupg gpgme.dev ]
|
||||||
++ stdenv.lib.optional wgetSupport [ wget ];
|
++ stdenv.lib.optionals wgetSupport [ wget ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
|
@ -37,7 +37,7 @@ assert enableQt -> qwt != null;
|
|||||||
]
|
]
|
||||||
++ stdenv.lib.optional enableNtfs ntfs3g
|
++ stdenv.lib.optional enableNtfs ntfs3g
|
||||||
++ stdenv.lib.optional enableExtFs e2fsprogs
|
++ stdenv.lib.optional enableExtFs e2fsprogs
|
||||||
++ stdenv.lib.optional enableQt [ qtbase qttools qwt ];
|
++ stdenv.lib.optionals enableQt [ qtbase qttools qwt ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ (stdenv.lib.optional stdenv.isDarwin Security) openssl ];
|
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
cargoSha256 = "1hxsfls6fpllc9yg5ib3qz6pa62j1y1va8a6356j6812csk4ifnn";
|
cargoSha256 = "1hxsfls6fpllc9yg5ib3qz6pa62j1y1va8a6356j6812csk4ifnn";
|
||||||
|
|
||||||
|
@ -4,17 +4,17 @@ stdenv.mkDerivation rec {
|
|||||||
pname = "reckon";
|
pname = "reckon";
|
||||||
version = (import ./gemset.nix).reckon.version;
|
version = (import ./gemset.nix).reckon.version;
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = let
|
||||||
env = bundlerEnv {
|
env = bundlerEnv {
|
||||||
name = "${pname}-${version}-gems";
|
name = "${pname}-${version}-gems";
|
||||||
|
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
};
|
};
|
||||||
|
in ''
|
||||||
phases = [ "installPhase" ];
|
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${env}/bin/reckon $out/bin/reckon
|
makeWrapper ${env}/bin/reckon $out/bin/reckon
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user