diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-08-03 20:32:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 20:32:57 +0200 |
commit | 169e4c4b145006a929471feb1fd84639c83facf1 (patch) | |
tree | 509ffc8cda6873a8682cd29a0ce9ffc16faab4f3 /pkgs/applications/misc | |
parent | 30392d5c2f775b9d97692232766b724cd526c6a5 (diff) | |
parent | a0a909fa9ecd2b74ef3933a6f9309d3922b37463 (diff) |
Merge pull request #245388 from oxij/source-root-src
treewide: mostly noop: refer to `src.name` or similar in `sourceRoot` where appropriate
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/candle/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/misc/johnny-reborn/with-data.nix | 40 | ||||
-rw-r--r-- | pkgs/applications/misc/openbangla-keyboard/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/misc/pot/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/misc/qsudo/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/misc/spacenav-cube-example/default.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/misc/subsurface/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/misc/yubioath-flutter/helper.nix | 2 |
8 files changed, 27 insertions, 31 deletions
diff --git a/pkgs/applications/misc/candle/default.nix b/pkgs/applications/misc/candle/default.nix index 8df75b0cbd196..3f9f2ec678b59 100644 --- a/pkgs/applications/misc/candle/default.nix +++ b/pkgs/applications/misc/candle/default.nix @@ -13,7 +13,7 @@ mkDerivation rec { nativeBuildInputs = [ qmake ]; - sourceRoot = "source/src"; + sourceRoot = "${src.name}/src"; installPhase = '' runHook preInstall diff --git a/pkgs/applications/misc/johnny-reborn/with-data.nix b/pkgs/applications/misc/johnny-reborn/with-data.nix index 1e53edaa5b85a..04300524665e8 100644 --- a/pkgs/applications/misc/johnny-reborn/with-data.nix +++ b/pkgs/applications/misc/johnny-reborn/with-data.nix @@ -6,34 +6,32 @@ , makeWrapper }: + +let + sounds = fetchFromGitHub { + owner = "nivs1978"; + repo = "Johnny-Castaway-Open-Source"; + rev = "be6afefd43a3334acc66fc9d777c162c8bfb9558"; + hash = "sha256-rtZVCn4KbEBVwaSQ4HZhMoDEI5Q9IPj9SZywgAx0MPY="; + }; + + resources = fetchzip { + name = "scrantic-source"; + url = "https://archive.org/download/johnny-castaway-screensaver/scrantic-run.zip"; + hash = "sha256-Q9chCYReOQEmkTyIkYo+D+OXYUqxPNOOEEmiFh8yaw4="; + stripRoot = false; + }; +in + stdenvNoCC.mkDerivation { pname = "johnny-reborn"; inherit (johnny-reborn-engine) version; - srcs = - let - sounds = fetchFromGitHub { - owner = "nivs1978"; - repo = "Johnny-Castaway-Open-Source"; - rev = "be6afefd43a3334acc66fc9d777c162c8bfb9558"; - hash = "sha256-rtZVCn4KbEBVwaSQ4HZhMoDEI5Q9IPj9SZywgAx0MPY="; - }; - - resources = fetchzip { - name = "scrantic-source"; - url = "https://archive.org/download/johnny-castaway-screensaver/scrantic-run.zip"; - hash = "sha256-Q9chCYReOQEmkTyIkYo+D+OXYUqxPNOOEEmiFh8yaw4="; - stripRoot = false; - }; - in - [ - sounds - resources - ]; + srcs = [ sounds resources ]; nativeBuildInputs = [ makeWrapper ]; - sourceRoot = "source"; + sourceRoot = sounds.name; dontConfigure = true; dontBuild = true; diff --git a/pkgs/applications/misc/openbangla-keyboard/default.nix b/pkgs/applications/misc/openbangla-keyboard/default.nix index 45e9c381c7cf3..4ce864bfdeb06 100644 --- a/pkgs/applications/misc/openbangla-keyboard/default.nix +++ b/pkgs/applications/misc/openbangla-keyboard/default.nix @@ -44,7 +44,7 @@ stdenv.mkDerivation rec { postPatch = '' cp ${./Cargo.lock} Cargo.lock ''; - sourceRoot = "source/${cargoRoot}"; + sourceRoot = "${src.name}/${cargoRoot}"; sha256 = "sha256-01MWuUUirsgpoprMArRp3qxKNayPHTkYWk31nXcIC34="; }; diff --git a/pkgs/applications/misc/pot/default.nix b/pkgs/applications/misc/pot/default.nix index 04570fa2d7ca7..941796315c712 100644 --- a/pkgs/applications/misc/pot/default.nix +++ b/pkgs/applications/misc/pot/default.nix @@ -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 \ diff --git a/pkgs/applications/misc/qsudo/default.nix b/pkgs/applications/misc/qsudo/default.nix index 5f9958f2d5d60..d73c3793871a1 100644 --- a/pkgs/applications/misc/qsudo/default.nix +++ b/pkgs/applications/misc/qsudo/default.nix @@ -17,7 +17,7 @@ mkDerivation rec { sha256 = "06kg057vwkvafnk69m9rar4wih3vq4h36wbzwbfc2kndsnn47lfl"; }; - sourceRoot = "source/src-qt5"; + sourceRoot = "${src.name}/src-qt5"; nativeBuildInputs = [ qmake diff --git a/pkgs/applications/misc/spacenav-cube-example/default.nix b/pkgs/applications/misc/spacenav-cube-example/default.nix index 990aedbc71ec0..0073c4a0f81e3 100644 --- a/pkgs/applications/misc/spacenav-cube-example/default.nix +++ b/pkgs/applications/misc/spacenav-cube-example/default.nix @@ -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 ]; diff --git a/pkgs/applications/misc/subsurface/default.nix b/pkgs/applications/misc/subsurface/default.nix index 1bc2c2b6c9768..6831cea6c4f31 100644 --- a/pkgs/applications/misc/subsurface/default.nix +++ b/pkgs/applications/misc/subsurface/default.nix @@ -44,7 +44,7 @@ let src = subsurfaceSrc; - sourceRoot = "source/libdivecomputer"; + sourceRoot = "${subsurfaceSrc.name}/libdivecomputer"; nativeBuildInputs = [ autoreconfHook pkg-config ]; diff --git a/pkgs/applications/misc/yubioath-flutter/helper.nix b/pkgs/applications/misc/yubioath-flutter/helper.nix index 2c188d833af6c..e40f6a78c862d 100644 --- a/pkgs/applications/misc/yubioath-flutter/helper.nix +++ b/pkgs/applications/misc/yubioath-flutter/helper.nix @@ -16,7 +16,7 @@ buildPythonApplication { pname = "yubioath-flutter-helper"; inherit src version meta; - sourceRoot = "source/helper"; + sourceRoot = "${src.name}/helper"; format = "pyproject"; postPatch = '' |