3
0
Fork 0
forked from mirrors/nixpkgs

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-08-04 00:02:04 +00:00 committed by GitHub
commit 0542af4e29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
255 changed files with 521 additions and 422 deletions

View file

@ -558,7 +558,7 @@ buildPythonPackage rec {
hash = "sha256-miW//pnOmww2i6SOGbkrAIdc/JMDT4FJLqdMFojZeoY=";
};
sourceRoot = "source/bindings/python";
sourceRoot = "${src.name}/bindings/python";
nativeBuildInputs = [
cargo

View file

@ -614,14 +614,19 @@ The list of source files or directories to be unpacked or copied. One of these m
##### `sourceRoot` {#var-stdenv-sourceRoot}
After running `unpackPhase`, the generic builder changes the current directory to the directory created by unpacking the sources. If there are multiple source directories, you should set `sourceRoot` to the name of the intended directory. Set `sourceRoot = ".";` if you use `srcs` and control the unpack phase yourself.
After unpacking all of `src` and `srcs`, if neither of `sourceRoot` and `setSourceRoot` are set, `unpackPhase` of the generic builder checks that the unpacking produced a single directory and moves the current working directory into it.
By default the `sourceRoot` is set to `"source"`. If you want to point to a sub-directory inside your project, you therefore need to set `sourceRoot = "source/my-sub-directory"`.
If `unpackPhase` produces multiple source directories, you should set `sourceRoot` to the name of the intended directory.
You can also set `sourceRoot = ".";` if you want to control it yourself in a later phase.
For example, if your want your build to start in a sub-directory inside your sources, and you are using `fetchzip`-derived `src` (like `fetchFromGitHub` or similar), you need to set `sourceRoot = "${src.name}/my-sub-directory"`.
##### `setSourceRoot` {#var-stdenv-setSourceRoot}
Alternatively to setting `sourceRoot`, you can set `setSourceRoot` to a shell command to be evaluated by the unpack phase after the sources have been unpacked. This command must set `sourceRoot`.
For example, if you are using `fetchurl` on an archive file that gets unpacked into a single directory the name of which changes between package versions, and you want your build to start in its sub-directory, you need to set `setSourceRoot = "sourceRoot=$(echo */my-sub-directory)";`, or in the case of multiple sources, you could use something more specific, like `setSourceRoot = "sourceRoot=$(echo ${pname}-*/my-sub-directory)";`.
##### `preUnpack` {#var-stdenv-preUnpack}
Hook executed at the start of the unpack phase.

View file

@ -162,6 +162,8 @@ The module update takes care of the new config syntax and the data itself (user
## Nixpkgs internals {#sec-release-23.11-nixpkgs-internals}
- The use of `sourceRoot = "source";`, `sourceRoot = "source/subdir";`, and similar lines in package derivations using the default `unpackPhase` is deprecated as it requires `unpackPhase` to always produce a directory named "source". Use `sourceRoot = src.name`, `sourceRoot = "${src.name}/subdir";`, or `setSourceRoot = "sourceRoot=$(echo */subdir)";` or similar instead.
- The `qemu-vm.nix` module by default now identifies block devices via
persistent names available in `/dev/disk/by-*`. Because the rootDevice is
identfied by its filesystem label, it needs to be formatted before the VM is

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
nativeBuildInputs = [ pkg-config wrapGAppsHook4 ];
buildInputs = [ gtk4 alsa-lib ];
postInstall = ''

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
sourceRoot = "source/src";
sourceRoot = "${finalAttrs.src.name}/src";
postPatch = ''
echo '#define GIT_REVISION "${finalAttrs.version}-NixOS"' > git-rev.h

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "1rasp2v1ds2aw296lbf27rzw0l9fjl0cvbvw85d5ycvh6wkm301p";
};
sourceRoot = "source/muse3";
sourceRoot = "${src.name}/muse3";
patches = [ ./fix-parallel-building.patch ];

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
libjack2
];
sourceRoot = "source/picoloop";
sourceRoot = "${src.name}/picoloop";
makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];

View file

@ -68,7 +68,7 @@ mkDerivation rec {
buildInputs = [ taglib ] ++ runtimeDeps;
# encoder plugins go to ${out}/lib so they're found by kbuildsycoca5
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out" ];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
# add runt-time deps to PATH
postInstall = ''
wrapProgram $out/bin/soundkonverter --prefix PATH : ${lib.makeBinPath runtimeDeps }

View file

@ -12,7 +12,7 @@ let
pname = "rnnoise-nu";
version = "unstable-07-10-2019";
src = speech-denoiser-src;
sourceRoot = "source/rnnoise";
sourceRoot = "${speech-denoiser-src.name}/rnnoise";
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [ "--disable-examples" "--disable-doc" "--disable-shared" "--enable-static" ];
installTargets = [ "install-rnnoise-nu" ];

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-oY1aGl5CKVtpOfh8Wskio/huWYMiPuxWPqxlooTutcw=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
nativeBuildInputs = [
cmake

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
hash = "sha256-zFwfKy8CVecGhgr48T+eDNHfMdctfrNGenc/XJctyw8=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
postPatch = ''
substituteInPlace Misc/Config.cpp --replace /usr $out

View file

@ -28,7 +28,7 @@ let
pname = "tsc";
commit = version;
sourceRoot = "source/core";
sourceRoot = "${src.name}/core";
recipe = writeText "recipe" ''
(tsc
@ -44,7 +44,7 @@ let
pname = "tsc-dyn";
nativeBuildInputs = [ rustPlatform.bindgenHook ];
sourceRoot = "source/core";
sourceRoot = "${src.name}/core";
postInstall = ''
LIB=($out/lib/libtsc_dyn.*)

View file

@ -96,12 +96,12 @@ if __name__ == "__main__":
drv_path = eval_drv(
nixpkgs,
"""
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "tsc-dyn";
version = "%s";
nativeBuildInputs = [ clang ];
src = fetchFromGitHub (lib.importJSON %s);
sourceRoot = "source/core";
sourceRoot = "${src.name}/core";
cargoHash = lib.fakeHash;
}
"""

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, autoconf, automake, pkg-config, SDL2, gtk2, mpfr }:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "basiliskii";
version = "unstable-2022-09-30";
@ -9,7 +9,7 @@ stdenv.mkDerivation {
rev = "2fa17a0783cf36ae60b77b5ed930cda4dc1824af";
sha256 = "+jkns6H2YjlewbUzgoteGSQYWJL+OWVu178aM+BtABM=";
};
sourceRoot = "source/BasiliskII/src/Unix";
sourceRoot = "${finalAttrs.src.name}/BasiliskII/src/Unix";
patches = [ ./remove-redhat-6-workaround-for-scsi-sg.h.patch ];
nativeBuildInputs = [ autoconf automake pkg-config ];
buildInputs = [ SDL2 gtk2 mpfr ];
@ -25,4 +25,4 @@ stdenv.mkDerivation {
maintainers = with maintainers; [ quag ];
platforms = platforms.linux;
};
}
})

View file

@ -51,7 +51,7 @@ in
rustPlatform.buildRustPackage {
inherit version src pname;
sourceRoot = "source/src-tauri";
sourceRoot = "${src.name}/src-tauri";
cargoLock = {
lockFile = ./Cargo.lock;

View file

@ -56,7 +56,7 @@ let
src = djvSrc;
sourceRoot = "source/etc/SuperBuild";
sourceRoot = "${src.name}/etc/SuperBuild";
nativeBuildInputs = [ cmake ];
buildInputs = [

View file

@ -87,7 +87,7 @@ stdenv.mkDerivation rec {
ln -s $out/share/Grabber/Grabber-cli $out/bin/Grabber-cli
'';
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
meta = with lib; {
description = "Very customizable imageboard/booru downloader with powerful filenaming features";

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, libevent, glew, glfw }:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "pixelnuke";
version = "unstable-2019-05-19";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
sha256 = "03dp0p00chy00njl4w02ahxqiwqpjsrvwg8j4yi4dgckkc3gbh40";
};
sourceRoot = "source/pixelnuke";
sourceRoot = "${finalAttrs.src.name}/pixelnuke";
buildInputs = [ libevent glew glfw ];
@ -26,4 +26,4 @@ stdenv.mkDerivation {
platforms = platforms.linux;
maintainers = with maintainers; [ mrVanDalo ];
};
}
})

View file

@ -39,7 +39,7 @@ let
pname = "ETL";
inherit version src;
sourceRoot = "source/ETL";
sourceRoot = "${src.name}/ETL";
nativeBuildInputs = [
pkg-config
@ -54,7 +54,7 @@ let
pname = "synfig";
inherit version src;
sourceRoot = "source/synfig-core";
sourceRoot = "${src.name}/synfig-core";
configureFlags = [
"--with-boost=${boost.dev}"
@ -89,7 +89,7 @@ stdenv.mkDerivation {
pname = "synfigstudio";
inherit version src;
sourceRoot = "source/synfig-studio";
sourceRoot = "${src.name}/synfig-studio";
postPatch = ''
patchShebangs images/splash_screen_development.sh

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
cargoRoot = "src/fuzzy-finder";
cargoDeps = rustPlatform.fetchCargoTarball {
src = finalAttrs.src;
sourceRoot = "source/src/fuzzy-finder";
sourceRoot = "${finalAttrs.src.name}/src/fuzzy-finder";
hash = "sha256-CDKlmwA2Wj78xPaSiYPmIJ7xmiE5Co+oGGejZU3v1zI=";
};

View file

@ -13,7 +13,7 @@ mkDerivation rec {
nativeBuildInputs = [ qmake ];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
installPhase = ''
runHook preInstall

View file

@ -1,6 +1,8 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, autoreconfHook
, guile
, guile-commonmark
, guile-reader
@ -17,7 +19,24 @@ stdenv.mkDerivation rec {
hash = "sha256-vPKLQ9hDJdimEAXwIBGgRRlefM8/77xFQoI+0J/lkNs=";
};
# Symbol not found: inotify_init
patches = [
(fetchpatch {
url = "https://git.dthompson.us/haunt.git/patch/?id=ab0b722b0719e3370a21359e4d511af9c4f14e60";
hash = "sha256-TPNJKGlbDkV9RpdN274qMLoN3HlwfH/yHpxlpqOPw58=";
})
(fetchpatch {
url = "https://git.dthompson.us/haunt.git/patch/?id=7d0b71f6a3f0e714da5a5c43e52408e27f44c383";
hash = "sha256-CW/h8CqsALKDuKRoN1bd/WEtFTvFj0VxtgmpatyrLm8=";
})
(fetchpatch {
url = "https://git.dthompson.us/haunt.git/patch/?id=1a91f3d0568fc095d8b0875c6553ef15b76efa4c";
hash = "sha256-+3wUlTuzbyGibAsCiYWKvzPqUrFs7VwdhnADjnPuWIY=";
})
];
nativeBuildInputs = [
autoreconfHook
makeWrapper
pkg-config
];

View file

@ -6,11 +6,7 @@
, makeWrapper
}:
stdenvNoCC.mkDerivation {
pname = "johnny-reborn";
inherit (johnny-reborn-engine) version;
srcs =
let
sounds = fetchFromGitHub {
owner = "nivs1978";
@ -26,14 +22,16 @@ stdenvNoCC.mkDerivation {
stripRoot = false;
};
in
[
sounds
resources
];
stdenvNoCC.mkDerivation {
pname = "johnny-reborn";
inherit (johnny-reborn-engine) version;
srcs = [ sounds resources ];
nativeBuildInputs = [ makeWrapper ];
sourceRoot = "source";
sourceRoot = sounds.name;
dontConfigure = true;
dontBuild = true;

View file

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
sourceRoot = "source/${cargoRoot}";
sourceRoot = "${src.name}/${cargoRoot}";
sha256 = "sha256-01MWuUUirsgpoprMArRp3qxKNayPHTkYWk31nXcIC34=";
};

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "pop";
version = "0.1.0";
version = "0.2.0";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "pop";
rev = "v${version}";
sha256 = "VzSPQZfapB44hzGumy8JKe+v+n6af9fRSlAq1F7olCo=";
hash = "sha256-ZGJkpa1EIw3tt1Ww2HFFoYsnnmnSAiv86XEB5TPf4/k=";
};
vendorSha256 = "VowqYygRKxpDJPfesJXBp00sBiHb57UMR/ZV//v7+90=";
vendorHash = "sha256-8YcJXvR0cdL9PlP74Qh6uN2XZoN16sz/yeeZlBsk5N8=";
GOWORK = "off";

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
hash = "sha256-v5yx8pE8+m+5CDy7X3CwitYhFQMX8Ynt8Y2k1lEZKpg=";
};
sourceRoot = "source/src-tauri";
sourceRoot = "${src.name}/src-tauri";
postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \

View file

@ -17,7 +17,7 @@ mkDerivation rec {
sha256 = "06kg057vwkvafnk69m9rar4wih3vq4h36wbzwbfc2kndsnn47lfl";
};
sourceRoot = "source/src-qt5";
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [
qmake

View file

@ -2,11 +2,9 @@
stdenv.mkDerivation {
pname = "spacenav-cube-example";
version = libspnav.version;
inherit (libspnav) version src;
src = libspnav.src;
sourceRoot = "source/examples/cube";
sourceRoot = "${libspnav.src.name}/examples/cube";
buildInputs = [ libX11 mesa_glu libspnav ];

View file

@ -44,7 +44,7 @@ let
src = subsurfaceSrc;
sourceRoot = "source/libdivecomputer";
sourceRoot = "${subsurfaceSrc.name}/libdivecomputer";
nativeBuildInputs = [ autoreconfHook pkg-config ];

View file

@ -16,7 +16,7 @@ buildPythonApplication {
pname = "yubioath-flutter-helper";
inherit src version meta;
sourceRoot = "source/helper";
sourceRoot = "${src.name}/helper";
format = "pyproject";
postPatch = ''

View file

@ -18,7 +18,7 @@ buildGoModule rec {
pname = "browsh";
sourceRoot = "source/interfacer";
sourceRoot = "${src.name}/interfacer";
src = fetchFromGitHub {
owner = "browsh-org";

View file

@ -10,7 +10,7 @@
, nixosTests
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "ladybird";
version = "unstable-2023-01-17";
@ -21,7 +21,7 @@ stdenv.mkDerivation {
hash = "sha256-n2mLg9wNfdMGsJuGj+ukjto9qYjGOIz4cZjgvMGQUrY=";
};
sourceRoot = "source/Ladybird";
sourceRoot = "${finalAttrs.src.name}/Ladybird";
postPatch = ''
substituteInPlace CMakeLists.txt \
@ -70,4 +70,4 @@ stdenv.mkDerivation {
maintainers = with maintainers; [ fgaz ];
platforms = platforms.unix;
};
}
})

View file

@ -12,7 +12,7 @@ let
hash = "sha256-xhBIJcEtxDdMXSgQtLAV0UWzPtrvKEil0WV76K5ycBc=";
};
sourceRoot = "source/frontend";
sourceRoot = "${src.name}/frontend";
npmDepsHash = "sha256-acNIMKHc4q7eiFLPBtKZBNweEsrt+//0VR6dqwXHTvA=";

View file

@ -59,7 +59,7 @@ in
pname = "gephgui";
inherit version src;
sourceRoot = "source/gephgui-wry/gephgui";
sourceRoot = "${src.name}/gephgui-wry/gephgui";
postPatch = "ln -s ${./package-lock.json} ./package-lock.json";
@ -79,7 +79,7 @@ in
pname = "gephgui-wry";
inherit version src;
sourceRoot = "source/gephgui-wry";
sourceRoot = "${src.name}/gephgui-wry";
cargoHash = "sha256-lidlUUfHXKPUlICdaVv/SFlyyWsZ7cYHyTJ3kkMn3L4=";

View file

@ -14,7 +14,7 @@ in rustPlatform.buildRustPackage rec {
hash = pinData.srcHash;
};
sourceRoot = "source/seshat-node/native";
sourceRoot = "${src.name}/seshat-node/native";
nativeBuildInputs = [ nodejs python3 yarn ];
buildInputs = [ sqlcipher ] ++ lib.optional stdenv.isDarwin CoreServices;

View file

@ -113,7 +113,7 @@ stdenv.mkDerivation rec {
daemon = stdenv.mkDerivation {
pname = "jami-daemon";
inherit src version meta;
sourceRoot = "source/daemon";
sourceRoot = "${src.name}/daemon";
nativeBuildInputs = [
autoreconfHook

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-VWsoyFG+Ro+Y6ngSTMQ7yBYf6awCMNOc6U0WqNeg/jU=";
};
sourceRoot = "source/steam-mobile";
sourceRoot = "${src.name}/steam-mobile";
installFlags = [
"PLUGIN_DIR_PURPLE=${placeholder "out"}/lib/purple-2"

View file

@ -13,7 +13,7 @@ let
fs-repo-common = pname: version: buildGoModule {
inherit pname version;
inherit (kubo-migrator-unwrapped) src;
sourceRoot = "source/${pname}";
sourceRoot = "${kubo-migrator-unwrapped.src.name}/${pname}";
vendorSha256 = null;
# Fix build on Go 1.17 and later: panic: qtls.ClientHelloInfo doesn't match
# See https://github.com/ipfs/fs-repo-migrations/pull/163

View file

@ -19,7 +19,7 @@ buildGoModule rec {
hash = "sha256-y0IYSKKZlFbPrTUC6XqYKhS3a79rieNGBL58teWMlC4=";
};
sourceRoot = "source/fs-repo-migrations";
sourceRoot = "${src.name}/fs-repo-migrations";
vendorHash = "sha256-/DqkBBtR/nU8gk3TFqNKY5zQU6BFMc3N8Ti+38mi/jk=";

View file

@ -11,7 +11,7 @@ buildGoModule {
src
;
sourceRoot = "source/wireguard/libwg";
sourceRoot = "${mullvad.src.name}/wireguard/libwg";
vendorSha256 = "QNde5BqkSuqp3VJQOhn7aG6XknRDZQ62PE3WGhEJ5LU=";

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
hash = "sha256-wbdamPi2XSLWeprrYZtBUDH1A2gdp6/5geFZv+ZqSWk=";
};
sourceRoot = "source/client";
sourceRoot = "${src.name}/client";
nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [ qtbase ];

View file

@ -10,13 +10,13 @@
stdenv.mkDerivation rec {
pname = "dayon";
version = "11.0.7";
version = "12.0.1";
src = fetchFromGitHub {
owner = "RetGal";
repo = "dayon";
rev = "v${version}";
hash = "sha256-3TbJVM5po4aUAOsY7JJs/b5tUzH3WGnca/H83IeMQ2s=";
hash = "sha256-SCInonMTvBXtiDxWlN8QWNS+8MFB52vloonqfLcAEis=";
};
# https://github.com/RetGal/Dayon/pull/66

View file

@ -11,7 +11,7 @@ buildPythonPackage rec {
pname = "openpaperwork-core";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/openpaperwork-core";
sourceRoot = "${src.name}/openpaperwork-core";
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;

View file

@ -17,7 +17,7 @@ buildPythonPackage rec {
pname = "openpaperwork-gtk";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/openpaperwork-gtk";
sourceRoot = "${src.name}/openpaperwork-gtk";
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;

View file

@ -30,7 +30,7 @@ buildPythonPackage rec {
pname = "paperwork-backend";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/paperwork-backend";
sourceRoot = "${src.name}/paperwork-backend";
patches = [
# disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700

View file

@ -41,7 +41,7 @@ python3Packages.buildPythonApplication rec {
src = sample_documents;
};
sourceRoot = "source/paperwork-gtk";
sourceRoot = "${src.name}/paperwork-gtk";
# Patch out a few paths that assume that we're using the FHS:
postPatch = ''

View file

@ -20,7 +20,7 @@ buildPythonPackage rec {
pname = "paperwork-shell";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/paperwork-shell";
sourceRoot = "${src.name}/paperwork-shell";
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "11r5ag2l5xn4pr7ycicm30w9c3ldn9yiqj1sqnjc79csxl2vrcfw";
};
sourceRoot = "source/host";
sourceRoot = "${src.name}/host";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libbtbb libpcap libusb1 bluez ];

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
hash = "sha256-NpnJziZXga/T5OavUt3nQ5np8kJ9CFcSmwyg4m6IJsk=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
installPhase = ''
install -m755 -D Linux/muscle $out/bin/muscle

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-58Y4lzqXwBhRlXcionUg2IhAg5znNUuyr/FsuNZd+5Q=";
};
sourceRoot = "source/source";
sourceRoot = "${src.name}/source";
postPatch = ''
substituteInPlace Makefile --replace "/bin/rm" "rm"

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
})
];
sourceRoot = "source/tandem_aligner";
sourceRoot = "${finalAttrs.src.name}/tandem_aligner";
nativeBuildInputs = [ cmake ];

View file

@ -12,7 +12,7 @@ buildPythonPackage {
format = "pyproject";
sourceRoot = "source/build/python";
sourceRoot = "${autodock-vina.src.name}/build/python";
postPatch = ''
# wildcards are not allowed

View file

@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
src = z3.src;
sourceRoot = "source/examples/tptp";
sourceRoot = "${src.name}/examples/tptp";
nativeBuildInputs = [cmake];
buildInputs = [z3];

View file

@ -14,7 +14,7 @@ buildGoModule rec {
sha256 = data.repo_hash;
};
sourceRoot = "source/workhorse";
sourceRoot = "${src.name}/workhorse";
vendorSha256 = "sha256-lKl/V2fti0eqrEoeJNNwvJbZO7z7v+5HlES+dyxxcP4=";
buildInputs = [ git ];

View file

@ -21,7 +21,7 @@ python3.pkgs.buildPythonApplication rec {
# Upstream splitted the project into gitlint and gitlint-core to
# simplify the dependency handling
sourceRoot = "source/gitlint-core";
sourceRoot = "${src.name}/gitlint-core";
nativeBuildInputs = with python3.pkgs; [
hatch-vcs

View file

@ -6,48 +6,52 @@
, gitUpdater
}:
mkDerivation rec {
let
pname = "gitqlient";
version = "1.5.0";
srcs = [
(fetchFromGitHub {
main_src = fetchFromGitHub {
owner = "francescmm";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Mq29HbmPABrRIJjWC5AAKIOKbGngeJdkZkWeJw8BFuw=";
})
(fetchFromGitHub rec {
};
aux_src = fetchFromGitHub rec {
owner = "francescmm";
repo = "AuxiliarCustomWidgets";
rev = "835f538b4a79e4d6bb70eef37a32103e7b2a1fd1";
sha256 = "sha256-b1gb/7UcLS6lI92dBfTenGXA064t4dZufs3S9lu/lQA=";
name = repo;
})
(fetchFromGitHub rec {
};
qlogger_src = fetchFromGitHub rec {
owner = "francescmm";
repo = "QLogger";
rev = "d1ed24e080521a239d5d5e2c2347fe211f0f3e4f";
sha256 = "sha256-NVlFYmm7IIkf8LhQrAYXil9kH6DFq1XjOEHQiIWmER4=";
name = repo;
})
(fetchFromGitHub rec {
};
qpinnabletab_src = fetchFromGitHub rec {
owner = "francescmm";
repo = "QPinnableTabWidget";
rev = "cc937794e910d0452f0c07b4961c6014a7358831";
sha256 = "sha256-2KzzBv/s2t665axeBxWrn8aCMQQArQLlUBOAlVhU+wE=";
name = repo;
})
(fetchFromGitHub rec {
};
git_src = fetchFromGitHub rec {
owner = "francescmm";
repo = "git";
rev = "b62750f4da4b133faff49e6f53950d659b18c948";
sha256 = "sha256-4FqA+kkHd0TqD6ZuB4CbJ+IhOtQG9uWN+qhSAT0dXGs=";
name = repo;
})
];
};
in
sourceRoot = "source";
mkDerivation rec {
inherit pname version;
srcs = [ main_src aux_src qlogger_src qpinnabletab_src git_src ];
sourceRoot = main_src.name;
nativeBuildInputs = [
qmake

View file

@ -96,7 +96,7 @@ python3Packages.buildPythonApplication {
pname = "sapling";
inherit src version;
sourceRoot = "source/eden/scm";
sourceRoot = "${src.name}/eden/scm";
# Upstream does not commit Cargo.lock
cargoDeps = rustPlatform.importCargoLock {

View file

@ -30,7 +30,7 @@ let
buildsrht-worker = buildGoModule {
inherit src version;
sourceRoot = "source/worker";
sourceRoot = "${src.name}/worker";
pname = "buildsrht-worker";
vendorHash = "sha256-y5RFPbtaGmgPpiV2Q3njeWORGZF1TJRjAbY6VgC1hek=";
};

View file

@ -49,7 +49,7 @@ buildNpmPackage rec {
npmDepsHash = "sha256-a/cDPABWI4lPxvSOI4D90O71A9lm8icPMak/g6DPYQY=";
npmRootPath = "";
sourceRoot = "source/client";
sourceRoot = "${src.name}/client";
NODE_OPTIONS = "--openssl-legacy-provider";
};

View file

@ -7,7 +7,7 @@ buildNpmPackage {
pname = "frigate-web";
inherit version src;
sourceRoot = "source/web";
sourceRoot = "${src.name}/web";
postPatch = ''
substituteInPlace package.json \

View file

@ -6,7 +6,7 @@ stdenv.mkDerivation {
pname = "tinywl";
inherit (wlroots) version src;
sourceRoot = "source/tinywl";
sourceRoot = "${wlroots.src.name}/tinywl";
nativeBuildInputs = [ pkg-config wayland-scanner ];
buildInputs = [ libxkbcommon pixman udev wayland wayland-protocols wlroots ];

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, libX11, xorgproto }:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "wmderlandc";
version = "unstable-2020-07-17";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
sha256 = "0npmlnybblp82mfpinjbz7dhwqgpdqc1s63wc1zs8mlcs19pdh98";
};
sourceRoot = "source/ipc-client";
sourceRoot = "${finalAttrs.src.name}/ipc-client";
nativeBuildInputs = [
cmake
@ -29,4 +29,4 @@ stdenv.mkDerivation {
platforms = platforms.all;
maintainers = with maintainers; [ takagiy ];
};
}
})

View file

@ -21,7 +21,7 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-quBSH8hx3gD7y1JNWAKQdTk3CmO4t1kVo4cOGbeWlNE=";
};
sourceRoot = "source/themes/catppuccin-${variant}";
sourceRoot = "${src.name}/themes/catppuccin-${variant}";
installPhase = ''
runHook preInstall

View file

@ -21,8 +21,27 @@
}:
let
pname = "mojave-gtk-theme";
version = "2023-06-13";
main_src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
hash = "sha256-0jb/VQ6Z0BGaEka57BWM0pBweP08cr4jfPRdEN/BJ1M=";
};
wallpapers_src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = "0c4ae6ddff7e3fab4959469461c4d4042deb1b2f";
hash = "sha256-7LSZSsRt6zTVPLWzuBgwRC1q1MHp5pN/pMl3x2wR8Ow=";
name = "wallpapers";
};
in
lib.checkListOfEnum "${pname}: button size variants" [ "standard" "small" ] buttonSizeVariants
lib.checkListOfEnum "${pname}: button variants" [ "standard" "alt" ] buttonVariants
lib.checkListOfEnum "${pname}: color variants" [ "light" "dark" ] colorVariants
@ -30,29 +49,11 @@ lib.checkListOfEnum "${pname}: opacity variants" [ "standard" "solid" ] opacityV
lib.checkListOfEnum "${pname}: theme variants" [ "default" "blue" "purple" "pink" "red" "orange" "yellow" "green" "grey" "all" ] themeVariants
stdenvNoCC.mkDerivation rec {
inherit pname;
version = "2023-06-13";
inherit pname version;
srcs = [
(fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
hash = "sha256-0jb/VQ6Z0BGaEka57BWM0pBweP08cr4jfPRdEN/BJ1M=";
})
]
++
lib.optional wallpapers
(fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = "0c4ae6ddff7e3fab4959469461c4d4042deb1b2f";
hash = "sha256-7LSZSsRt6zTVPLWzuBgwRC1q1MHp5pN/pMl3x2wR8Ow=";
name = "wallpapers";
})
;
srcs = [ main_src ] ++ lib.optional wallpapers wallpapers_src;
sourceRoot = "source";
sourceRoot = main_src.name;
nativeBuildInputs = [
glib

View file

@ -11,7 +11,7 @@ mkDerivation rec {
sha256 = "1238d1m0mjkwkdpgq165a4ql9aql0aji5f41rzdzny6m7ws9nm2y";
};
sourceRoot = "source/src-qt5";
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [ qmake qttools ];

View file

@ -11,7 +11,7 @@ mkDerivation rec {
sha256 = "08caj4nashp79fbvj94rabn0iaa1hymifqmb782x03nb2vkn38r6";
};
sourceRoot = "source/src-qt5";
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [ qmake qttools ];

View file

@ -10,7 +10,7 @@ let
inherit version;
inherit src;
sourceRoot = "source/clang";
sourceRoot = "${src.name}/clang";
nativeBuildInputs = [ cmake python3 ]
++ lib.optional enableManpages python3.pkgs.sphinx

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation {
inherit version;
inherit src;
sourceRoot = "source/compiler-rt";
sourceRoot = "${src.name}/compiler-rt";
nativeBuildInputs = [ cmake python3 libllvm.dev ]
++ lib.optional stdenv.isDarwin xcbuild.xcrun;

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/libcxx";
sourceRoot = "${src.name}/libcxx";
outputs = [ "out" ] ++ lib.optional (!headersOnly) "dev";

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
outputs = [ "out" "dev" ];

View file

@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
patches = [
./gnu-install-dirs.patch

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
patches = [
./gnu-install-dirs.patch

View file

@ -61,7 +61,7 @@ in stdenv.mkDerivation (rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
outputs = [ "out" "lib" "dev" "python" ];

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [ cmake perl ];
buildInputs = [

View file

@ -1,6 +1,6 @@
{ lib, mkCoqDerivation, coq, version ? null }:
mkCoqDerivation {
(mkCoqDerivation {
pname = "metalib";
owner = "plclub";
inherit version;
@ -12,10 +12,10 @@ mkCoqDerivation {
release."8.15".sha256 = "0wbp058zwa4bkdjj38aysy2g1avf9nrh8q23a3dil0q00qczi616";
release."8.10".sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs";
sourceRoot = "source/Metalib";
meta = with lib; {
license = licenses.mit;
maintainers = [ maintainers.jwiegley ];
};
}
}).overrideAttrs (oldAttrs: {
sourceRoot = "${oldAttrs.src.name}/Metalib";
})

View file

@ -15,7 +15,7 @@ with python3Packages; buildPythonApplication rec {
sha256 = "0zbrvvb957z2lwbfd39ixqdsnd2w4wfjirwkqdrqm27bjz308731";
};
sourceRoot = "source/programmer";
sourceRoot = "${src.name}/programmer";
propagatedBuildInputs = [
pyserial

View file

@ -6,8 +6,6 @@
, texinfo
}:
assert stdenv ? cc && stdenv.cc.isGNU;
stdenv.mkDerivation rec {
pname = "guile-lib";
version = "0.2.7";
@ -25,6 +23,8 @@ stdenv.mkDerivation rec {
texinfo
];
makeFlags = [ "GUILE_AUTO_COMPILE=0" ];
doCheck = true;
preCheck = ''
@ -44,6 +44,6 @@ stdenv.mkDerivation rec {
'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
platforms = platforms.gnu ++ platforms.linux;
platforms = guile.meta.platforms;
};
}

View file

@ -36,6 +36,9 @@ stdenv.mkDerivation rec {
done
'';
# Undefined symbols for architecture arm64: "_u32_conv_from_encoding"
env.NIX_LDFLAGS = "-lunistring";
# XXX: 1 of 65 tests failed.
doCheck = false;
@ -50,6 +53,6 @@ stdenv.mkDerivation rec {
'';
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ vyp ];
platforms = platforms.gnu ++ platforms.linux;
platforms = guile.meta.platforms;
};
}

View file

@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, gperf
, guile
, guile-lib
@ -46,6 +45,6 @@ stdenv.mkDerivation rec {
'';
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.gnu;
platforms = guile.meta.platforms;
};
}

View file

@ -18,7 +18,7 @@ let
setTensorflowSourceRoot = dir: drv:
(overrideCabal (drv: { src = tensorflow-haskell; }) drv)
.overrideAttrs (_oldAttrs: {sourceRoot = "source/${dir}";});
.overrideAttrs (_oldAttrs: { sourceRoot = "${tensorflow-haskell.name}/${dir}"; });
in
{
tensorflow-proto = doJailbreak (setTensorflowSourceRoot "tensorflow-proto" super.tensorflow-proto);

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
hash = "sha256-0sU2zOk5I69lQyrn1g0qsae7S/IBT6eA/911qp0GNkk=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
buildInputs = [ libedit zlib ncurses ]
++ lib.optionals stdenv.isDarwin ([
Accelerate

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ];
sourceRoot = "source/product-mini/platforms/linux";
sourceRoot = "${finalAttrs.src.name}/product-mini/platforms/linux";
meta = with lib; {
description = "WebAssembly Micro Runtime";

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
hash = "sha256-yp7u6qhpPYQpBw3d+VLg0GgMyZONVII8BsBCEoRZm4w=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
postPatch = ''
sed -i '/-m64/d;/-m32/d' CMakeLists.txt

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-u/4GG1A2PAlk8VEWgJX8+EnZ5hpGhu1QbvHwct58sF4=";
};
sourceRoot = "source/CPP";
sourceRoot = "${src.name}/CPP";
nativeBuildInputs = [
cmake

View file

@ -11,7 +11,7 @@ python3Packages.buildPythonApplication rec {
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
};
sourceRoot = "source/python";
sourceRoot = "${src.name}/python";
nativeCheckInputs = [ python3Packages.ply ];

View file

@ -2,7 +2,7 @@
, faad2, fftwFloat, zlib
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "dab_lib";
version = "unstable-2023-03-02";
@ -13,7 +13,7 @@ stdenv.mkDerivation {
hash = "sha256-KSkOg0a5iq+13kClQqj+TaEP/PsLUrm8bMmiJEAZ+C4=";
};
sourceRoot = "source/library/";
sourceRoot = "${finalAttrs.src.name}/library/";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ faad2 fftwFloat zlib ];
@ -25,4 +25,4 @@ stdenv.mkDerivation {
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.unix;
};
}
})

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, installShellFiles, cmake }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, installShellFiles, cmake }:
stdenv.mkDerivation rec {
pname = "doctest";
@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-hotO6QVpPn8unYTaQHFgi40A3oLUd++I3aTe293e4Aw=";
};
patches = [
# Suppress unsafe buffer usage warnings with clang 16, which are treated as errors due to `-Werror`.
# https://github.com//doctest/doctest/pull/768
(fetchpatch {
url = "https://github.com/doctest/doctest/commit/9336c9bd86e3fc2e0c36456cad8be3b4e8829a22.patch";
hash = "sha256-ZFCVk5qvgfixRm7ZFr7hyNCSEvrT6nB01G/CBshq53o=";
})
];
nativeBuildInputs = [ cmake ];
doCheck = true;

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
rev = "v${version}";
hash = "sha256-i1txeUE/ZSRggwLDtpS8dd4uuZfHX9w3zRH0gBgGXnk=";
};
sourceRoot = "source/fuzzylite";
sourceRoot = "${src.name}/fuzzylite";
outputs = [ "out" "dev" ];

View file

@ -9,7 +9,7 @@ mkDerivation rec {
outputs = [ "out" "dev" ];
sourceRoot = "source/herqq";
sourceRoot = "${src.name}/herqq";
src = fetchFromGitHub {
owner = "ThomArmax";
repo = "HUPnP";

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
rev = "llvmorg-${version}";
hash = "sha256-paWwnoU3XMqreRgh9JbT1tDMTwq/ZL0ss3SJTteEGL0=";
};
sourceRoot = "source/libclc";
sourceRoot = "${src.name}/libclc";
outputs = [ "out" "dev" ];

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
sourceRoot = "source/libgeotiff";
sourceRoot = "${src.name}/libgeotiff";
configureFlags = [
"--with-jpeg=${libjpeg.dev}"

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-TkMy2tEdG1FPPWfH/wPnVbs5kocqe4Y0jU4yvbiRZ9k=";
};
sourceRoot = "source/libvmaf";
sourceRoot = "${src.name}/libvmaf";
patches = [
# Backport fix for non-Linux, non-Darwin platforms.

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
hash = "sha256-qE5i4dGugm7tR5tgDCpbla/R7hYR/PI8BzrZQ4y6Yz8=";
};
sourceRoot = "source/octomap";
sourceRoot = "${src.name}/octomap";
nativeBuildInputs = [ cmake ];

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
sourceRoot = "source/orocos_kdl";
sourceRoot = "${src.name}/orocos_kdl";
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ eigen ];

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
# SDK contains libraries and build-system to develop projects for RP2040 chip
# We only need to compile pioasm binary
sourceRoot = "source/tools/pioasm";
sourceRoot = "${src.name}/tools/pioasm";
installPhase = ''
runHook preInstall

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "132wp77fszx33wann0fjkmi1isxvsb0v9iw0gd9sxapa9h6hf3am";
};
sourceRoot = "source/scripts";
sourceRoot = "${src.name}/scripts";
buildPhase = ''
$CC nad2bin.c -o nad2bin

View file

@ -14,9 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-aci5SFBRNRrSub4XVJ2luHNZ2pAUegjgQ6pD9kpkaTY=";
};
preBuild = ''
cd c
'';
sourceRoot = "${finalAttrs.src.name}/c";
nativeBuildInputs = lib.optionals stdenv.cc.isClang [
stdenv.cc.cc.libllvm.out

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ qt4 libX11 libXext ];
sourceRoot = "source/Kvantum";
sourceRoot = "${src.name}/Kvantum";
buildPhase = ''
runHook preBuild

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (lib.versionOlder qtbase.version "6") [ qtx11extras kwindowsystem ]
++ lib.optional (lib.versionAtLeast qtbase.version "6") qtwayland;
sourceRoot = "source/Kvantum";
sourceRoot = "${src.name}/Kvantum";
patches = [
(fetchpatch {

View file

@ -131,7 +131,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "${finalAttrs.pname}-test";
inherit (finalAttrs) version src;
sourceRoot = "source/clients/tests";
sourceRoot = "${finalAttrs.src.name}/clients/tests";
nativeBuildInputs = [
cmake
@ -164,7 +164,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "${finalAttrs.pname}-benchmark";
inherit (finalAttrs) version src;
sourceRoot = "source/clients/rider";
sourceRoot = "${finalAttrs.src.name}/clients/rider";
nativeBuildInputs = [
cmake
@ -197,7 +197,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "${finalAttrs.pname}-samples";
inherit (finalAttrs) version src;
sourceRoot = "source/clients/samples";
sourceRoot = "${finalAttrs.src.name}/clients/samples";
nativeBuildInputs = [
cmake

Some files were not shown because too many files have changed in this diff Show more