treewide: remove env-vars from build outputs (#397760)

This commit is contained in:
Peder Bergebakken Sundt
2025-05-01 18:20:34 +02:00
committed by GitHub
7 changed files with 45 additions and 11 deletions
@@ -1,6 +1,6 @@
{
stdenv,
fetchurl,
fetchzip,
lib,
makeWrapper,
unzip,
@@ -25,17 +25,16 @@ stdenv.mkDerivation rec {
pname = "davmail";
version = "6.3.0";
src = fetchurl {
src = fetchzip {
url = "mirror://sourceforge/${pname}/${version}/${pname}-${version}-${toString rev}.zip";
hash = "sha256-Yh61ZHsEMF6SchLEyBV3rRI7pJ/bvR2K4G8U6jrPa3A=";
hash = "sha256-zJMwCFX/uJnLeThj6/t2usBRM+LIuamZt0EFLG3N+8k=";
stripRoot = false;
};
postPatch = ''
sed -i -e '/^JAVA_OPTS/d' davmail
'';
sourceRoot = ".";
nativeBuildInputs = [
makeWrapper
unzip
+8 -1
View File
@@ -17,12 +17,19 @@ stdenv.mkDerivation (finalAttrs: rec {
hash = "sha256-bhL+u+BoKgW2cwOXEzaq0h07dKFz9u9WB2jW8nAF0vI=";
};
sourceRoot = "source";
unpackPhase = ''
runHook preUnpack
unzip $src -d "$sourceRoot"
runHook postUnpack
'';
patches = [
# set GEOSERVER_DATA_DIR to current working directory if not provided
./data-dir.patch
];
sourceRoot = ".";
nativeBuildInputs = [
unzip
makeWrapper
+8 -1
View File
@@ -38,7 +38,14 @@ stdenv.mkDerivation rec {
passthru.sources.${stdenv.hostPlatform.system}
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
sourceRoot = ".";
sourceRoot = "source";
unpackPhase = ''
runHook preUnpack
mkdir -p "$sourceRoot"
tar xf $src --directory="$sourceRoot"
runHook postUnpack
'';
strictDeps = true;
+7 -1
View File
@@ -18,7 +18,13 @@ stdenv.mkDerivation rec {
unzip
];
sourceRoot = ".";
sourceRoot = "source";
unpackPhase = ''
runHook preUnpack
unzip $src -d $sourceRoot
runHook postUnpack
'';
installPhase = ''
runHook preInstall
+7 -1
View File
@@ -17,8 +17,14 @@ stdenv.mkDerivation (finalAttrs: {
preferLocalBuild = true;
nativeBuildInputs = [ unzrip ];
sourceRoot = "source";
unpackPhase = ''
${unzrip}/bin/unzrip $src
runHook preUnpack
unzrip $src -d "$sourceRoot"
runHook postUnpack
'';
installPhase =
+9 -2
View File
@@ -35,13 +35,20 @@ stdenv.mkDerivation rec {
pname = "ombi";
version = "4.47.1";
sourceRoot = ".";
src = fetchurl {
url = "https://github.com/Ombi-app/Ombi/releases/download/v${version}/${os}-${arch}.tar.gz";
sha256 = hash;
};
sourceRoot = "source";
unpackPhase = ''
runHook preUnpack
mkdir -p "$sourceRoot"
tar xf $src --directory="$sourceRoot"
runHook postUnpack
'';
nativeBuildInputs =
[ makeWrapper ]
++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook
+2
View File
@@ -175,6 +175,7 @@ let
version = "11.0.2";
sha256 = "07na27n4mlw77f3hg5jpayzxll7f4gyna6x7k9cybmxpbs6l77k7";
outputFiles = [ "*" ];
postInstall = "rm $target/env-vars"; # fetchNuGet already sets preInstall
};
Paket = fetchNuGet {
@@ -182,6 +183,7 @@ let
version = "5.179.1";
sha256 = "11rzna03i145qj08hwrynya548fwk8xzxmg65swyaf19jd7gzg82";
outputFiles = [ "*" ];
postInstall = "rm $target/env-vars"; # fetchNuGet already sets preInstall
};
};