treewide: substitute finalAttrs.pname for strings

This commit is contained in:
Peder Bergebakken Sundt 2025-06-02 06:16:01 +02:00
parent d12b3ccedb
commit 3cc2f5fd4b
45 changed files with 87 additions and 87 deletions

View file

@ -106,7 +106,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
install -Dm555 -t $out/bin b/*/7zz${stdenv.hostPlatform.extensions.executable} install -Dm555 -t $out/bin b/*/7zz${stdenv.hostPlatform.extensions.executable}
install -Dm444 -t $out/share/doc/${finalAttrs.pname} ../../../../DOC/*.txt install -Dm444 -t $out/share/doc/7zz ../../../../DOC/*.txt
runHook postInstall runHook postInstall
''; '';

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "2.3.1"; version = "2.3.1";
src = fetchurl { src = fetchurl {
url = "mirror://debian/pool/main/a/as31/${finalAttrs.pname}_${finalAttrs.version}.orig.tar.gz"; url = "mirror://debian/pool/main/a/as31/as31_${finalAttrs.version}.orig.tar.gz";
name = "${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; name = "${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-zSEyWHFon5nyq717Mpmdv1XZ5Hz0e8ZABqsP8M83c1U="; hash = "sha256-zSEyWHFon5nyq717Mpmdv1XZ5Hz0e8ZABqsP8M83c1U=";
}; };

View file

@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "9.20.9"; version = "9.20.9";
src = fetchurl { src = fetchurl {
url = "https://downloads.isc.org/isc/bind9/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz"; url = "https://downloads.isc.org/isc/bind9/${finalAttrs.version}/bind-${finalAttrs.version}.tar.xz";
hash = "sha256-PSaQDtnJqFkHP/6puX4pLBJI2tGCebF7BfyyPDCR+G0="; hash = "sha256-PSaQDtnJqFkHP/6puX4pLBJI2tGCebF7BfyyPDCR+G0=";
}; };

View file

@ -75,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: {
]; ];
postFixup = '' postFixup = ''
moveToOutput share/ament_index "$dev" moveToOutput share/ament_index "$dev"
moveToOutput share/${finalAttrs.pname} "$dev" moveToOutput share/coal "$dev"
''; '';
meta = { meta = {

View file

@ -21,9 +21,9 @@ php.buildComposerProject2 (finalAttrs: {
postInstall = '' postInstall = ''
chmod -R u+w $out/share chmod -R u+w $out/share
# Only include the files needed for runtime in the derivation # Only include the files needed for runtime in the derivation
mv $out/share/php/${finalAttrs.pname}/{migrations,public,src,config,bin,templates,tests,translations,vendor,symfony.lock,composer.json,composer.lock} $out mv $out/share/php/davis/{migrations,public,src,config,bin,templates,tests,translations,vendor,symfony.lock,composer.json,composer.lock} $out
# Save the upstream .env file for reference, but rename it so it is not loaded # Save the upstream .env file for reference, but rename it so it is not loaded
mv $out/share/php/${finalAttrs.pname}/.env $out/env-upstream mv $out/share/php/davis/.env $out/env-upstream
rm -rf "$out/share" rm -rf "$out/share"
''; '';

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "2.1"; version = "2.1";
src = fetchurl { src = fetchurl {
url = "mirror://samba/paulus/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; url = "mirror://samba/paulus/dirdiff-${finalAttrs.version}.tar.gz";
hash = "sha256-yzc2VNV4gCeAQ1XjVd8GlYYsO/wfaj/GAUcisxVqklI="; hash = "sha256-yzc2VNV4gCeAQ1XjVd8GlYYsO/wfaj/GAUcisxVqklI=";
}; };

View file

@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [ "-DQT_VERSION_MAJOR=6" ]; cmakeFlags = [ "-DQT_VERSION_MAJOR=6" ];
postInstall = '' postInstall = ''
install -Dm644 $src/LICENSE.txt $out/share/licenses/${finalAttrs.pname}/LICENSE install -Dm644 $src/LICENSE.txt $out/share/licenses/efibooteditor/LICENSE
''; '';
meta = { meta = {

View file

@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
# The package expect to find an `example-robot-data/robots` folder somewhere # The package expect to find an `example-robot-data/robots` folder somewhere
# either in install prefix or in the sources # either in install prefix or in the sources
# where it can find the meshes for unit tests # where it can find the meshes for unit tests
preCheck = "ln -s source ../../${finalAttrs.pname}"; preCheck = "ln -s source ../../example-robot-data";
pythonImportsCheck = [ "example_robot_data" ]; pythonImportsCheck = [ "example_robot_data" ];
meta = with lib; { meta = with lib; {

View file

@ -19,7 +19,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
# https://gitlab.archlinux.org/archlinux/packaging/packages/fcitx5-material-color/-/blob/main/PKGBUILD?ref_type=heads#L16 # https://gitlab.archlinux.org/archlinux/packaging/packages/fcitx5-material-color/-/blob/main/PKGBUILD?ref_type=heads#L16
install -Dm644 arrow.png radio.png -t $out/share/${finalAttrs.pname}/ install -Dm644 arrow.png radio.png -t $out/share/fcitx5-material-color/
for _variant in black blue brown deepPurple indigo orange pink red sakuraPink teal; do for _variant in black blue brown deepPurple indigo orange pink red sakuraPink teal; do
_variant_name=Material-Color-$_variant _variant_name=Material-Color-$_variant
install -dm755 $_variant_name $out/share/fcitx5/themes/$_variant_name install -dm755 $_variant_name $out/share/fcitx5/themes/$_variant_name

View file

@ -82,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: {
postFixup = '' postFixup = ''
substituteInPlace $out/share/applications/figma-linux.desktop \ substituteInPlace $out/share/applications/figma-linux.desktop \
--replace "Exec=/opt/figma-linux/figma-linux" "Exec=$out/bin/${finalAttrs.pname}" --replace "Exec=/opt/figma-linux/figma-linux" "Exec=$out/bin/figma-linux"
''; '';
meta = with lib; { meta = with lib; {

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "0.0.38"; version = "0.0.38";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "modelica"; owner = "modelica";
repo = finalAttrs.pname; repo = "reference-fmus";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-FeDKYcm9K670q1FGqy41Tp2Ag8p2JidH4z78zpHOngw="; hash = "sha256-FeDKYcm9K670q1FGqy41Tp2Ag8p2JidH4z78zpHOngw=";
}; };

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p $out mkdir -p $out
mv bin lib $out mv bin lib $out
wrapProgram $out/bin/${finalAttrs.pname} \ wrapProgram $out/bin/genesys \
--set JAVA_HOME "${jre.home}" \ --set JAVA_HOME "${jre.home}" \
--prefix PATH : "${graphviz}/bin" --prefix PATH : "${graphviz}/bin"

View file

@ -11,7 +11,7 @@ buildGoModule (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = finalAttrs.pname; repo = "go-jsonnet";
tag = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
hash = "sha256-J92xNDpCidbiSsN6NveS6BX6Tx+qDQqkgm6pjk1wBTQ="; hash = "sha256-J92xNDpCidbiSsN6NveS6BX6Tx+qDQqkgm6pjk1wBTQ=";
}; };

View file

@ -24,9 +24,9 @@ buildNimPackage (finalAttrs: {
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
categories = [ "Utility" ]; categories = [ "Utility" ];
comment = finalAttrs.meta.description; comment = finalAttrs.meta.description;
desktopName = finalAttrs.pname; desktopName = "hottext";
exec = finalAttrs.pname; exec = "hottext";
name = finalAttrs.pname; name = "hottext";
}; };
postInstall = '' postInstall = ''

View file

@ -135,10 +135,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
install -D usr/lib/x86_64-linux-gnu/ideamaker/ideamaker \ install -D usr/lib/x86_64-linux-gnu/ideamaker/ideamaker \
$out/bin/${finalAttrs.pname} $out/bin/ideamaker
patchelf --replace-needed libquazip.so.1 libquazip1-qt5.so \ patchelf --replace-needed libquazip.so.1 libquazip1-qt5.so \
$out/bin/${finalAttrs.pname} $out/bin/ideamaker
mimetypeDir=$out/share/icons/hicolor/128x128/mimetypes mimetypeDir=$out/share/icons/hicolor/128x128/mimetypes
mkdir -p ''$mimetypeDir mkdir -p ''$mimetypeDir
@ -146,10 +146,10 @@ stdenv.mkDerivation (finalAttrs: {
mv $file ''$mimetypeDir/''$(basename ''${file%.ico}).png mv $file ''$mimetypeDir/''$(basename ''${file%.ico}).png
done done
install -D ${./mimetypes.xml} \ install -D ${./mimetypes.xml} \
$out/share/mime/packages/${finalAttrs.pname}.xml $out/share/mime/packages/ideamaker.xml
install -D usr/share/ideamaker/icons/ideamaker-icon.png \ install -D usr/share/ideamaker/icons/ideamaker-icon.png \
$out/share/pixmaps/${finalAttrs.pname}.png $out/share/pixmaps/ideamaker.png
ln -s ${finalAttrs.desktopItem}/share/applications $out/share/ ln -s ${finalAttrs.desktopItem}/share/applications $out/share/
@ -157,9 +157,9 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = finalAttrs.pname; name = "ideamaker";
exec = finalAttrs.pname; exec = "ideamaker";
icon = finalAttrs.pname; icon = "ideamaker";
desktopName = "Ideamaker"; desktopName = "Ideamaker";
comment = "ideaMaker - www.raise3d.com"; comment = "ideaMaker - www.raise3d.com";
categories = [ categories = [

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "2.3"; version = "2.3";
src = fetchurl { src = fetchurl {
url = "https://jprs.co.jp/idn/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2"; url = "https://jprs.co.jp/idn/idnkit-${finalAttrs.version}.tar.bz2";
hash = "sha256-JtBxF2UAQqtGk/DgCWAnXVihvnc+bRPFA7o4RxDz6X4="; hash = "sha256-JtBxF2UAQqtGk/DgCWAnXVihvnc+bRPFA7o4RxDz6X4=";
}; };

View file

@ -44,8 +44,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
name = finalAttrs.pname; name = "irpf";
exec = finalAttrs.pname; exec = "irpf";
icon = "rfb64"; icon = "rfb64";
desktopName = "Imposto de Renda Pessoa Física"; desktopName = "Imposto de Renda Pessoa Física";
comment = "Programa Oficial da Receita para elaboração do IRPF"; comment = "Programa Oficial da Receita para elaboração do IRPF";
@ -56,7 +56,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
BASEDIR="$out/share/${finalAttrs.pname}" BASEDIR="$out/share/irpf"
mkdir -p "$BASEDIR" mkdir -p "$BASEDIR"
cp --no-preserve=mode -r help lib lib-modulos "$BASEDIR" cp --no-preserve=mode -r help lib lib-modulos "$BASEDIR"
@ -64,10 +64,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
install -Dm644 irpf.jar Leia-me.htm offline.png online.png pgd-updater.jar "$BASEDIR" install -Dm644 irpf.jar Leia-me.htm offline.png online.png pgd-updater.jar "$BASEDIR"
# make xdg-open overrideable at runtime # make xdg-open overrideable at runtime
makeWrapper ${jdk11}/bin/java $out/bin/${finalAttrs.pname} \ makeWrapper ${jdk11}/bin/java $out/bin/irpf \
--add-flags "-Dawt.useSystemAAFontSettings=on" \ --add-flags "-Dawt.useSystemAAFontSettings=on" \
--add-flags "-Dswing.aatext=true" \ --add-flags "-Dswing.aatext=true" \
--add-flags "-jar $BASEDIR/${finalAttrs.pname}.jar" \ --add-flags "-jar $BASEDIR/irpf.jar" \
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \ --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \
--set _JAVA_AWT_WM_NONREPARENTING 1 \ --set _JAVA_AWT_WM_NONREPARENTING 1 \
--set AWT_TOOLKIT MToolkit --set AWT_TOOLKIT MToolkit

View file

@ -123,7 +123,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
target="$out/lib/dotnet/${finalAttrs.pname}" target="$out/lib/dotnet/keepass"
mkdir -p "$target" mkdir -p "$target"
cp -rv $outputFiles "$target" cp -rv $outputFiles "$target"

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "1.8"; version = "1.8";
src = fetchurl { src = fetchurl {
url = "https://hyperrealm.github.io/${finalAttrs.pname}/dist/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; url = "https://hyperrealm.github.io/libconfig/dist/libconfig-${finalAttrs.version}.tar.gz";
hash = "sha256-BR4V3Q6QfESQXzF5M/VIcxTypW6MZybIMEzpkIhIUKo="; hash = "sha256-BR4V3Q6QfESQXzF5M/VIcxTypW6MZybIMEzpkIhIUKo=";
}; };

View file

@ -154,7 +154,7 @@ php.buildComposerProject2 (finalAttrs: {
mkdir -p $out/bin mkdir -p $out/bin
cat << EOF > $out/bin/movim cat << EOF > $out/bin/movim
#!${lib.getExe dash} #!${lib.getExe dash}
${lib.getExe finalAttrs.php} $out/share/php/${finalAttrs.pname}/daemon.php "\$@" ${lib.getExe finalAttrs.php} $out/share/php/movim/daemon.php "\$@"
EOF EOF
chmod +x $out/bin/movim chmod +x $out/bin/movim

View file

@ -44,9 +44,9 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
# Based on the upstream PKGBUILD # Based on the upstream PKGBUILD
mkdir -p $out/share/doc/${finalAttrs.pname} mkdir -p $out/share/doc/mya
cp -a bin $out cp -a bin $out
cp $cmakeDir/README.md $out/share/doc/${finalAttrs.pname} cp $cmakeDir/README.md $out/share/doc/mya
runHook postInstall runHook postInstall
''; '';

View file

@ -126,7 +126,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "NETGEN_VERSION_GIT" "v${finalAttrs.version}-0") (lib.cmakeFeature "NETGEN_VERSION_GIT" "v${finalAttrs.version}-0")
(lib.cmakeFeature "NG_INSTALL_DIR_BIN" "bin") (lib.cmakeFeature "NG_INSTALL_DIR_BIN" "bin")
(lib.cmakeFeature "NG_INSTALL_DIR_LIB" "lib") (lib.cmakeFeature "NG_INSTALL_DIR_LIB" "lib")
(lib.cmakeFeature "NG_INSTALL_DIR_CMAKE" "lib/cmake/${finalAttrs.pname}") (lib.cmakeFeature "NG_INSTALL_DIR_CMAKE" "lib/cmake/netgen")
(lib.cmakeFeature "NG_INSTALL_DIR_PYTHON" python3Packages.python.sitePackages) (lib.cmakeFeature "NG_INSTALL_DIR_PYTHON" python3Packages.python.sitePackages)
(lib.cmakeFeature "NG_INSTALL_DIR_RES" "share") (lib.cmakeFeature "NG_INSTALL_DIR_RES" "share")
(lib.cmakeFeature "NG_INSTALL_DIR_INCLUDE" "include") (lib.cmakeFeature "NG_INSTALL_DIR_INCLUDE" "include")
@ -160,11 +160,11 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = postInstall =
lib.optionalString stdenv.hostPlatform.isDarwin '' lib.optionalString stdenv.hostPlatform.isDarwin ''
rm $out/bin/{Netgen1,startup.sh} rm $out/bin/{Netgen1,startup.sh}
mkdir -p $out/Applications/${finalAttrs.pname}.app/Contents/{MacOS,Resouces} mkdir -p $out/Applications/netgen.app/Contents/{MacOS,Resouces}
substituteInPlace $out/Info.plist --replace-fail "Netgen1" "netgen" substituteInPlace $out/Info.plist --replace-fail "Netgen1" "netgen"
mv $out/Info.plist $out/Applications/${finalAttrs.pname}.app/Contents mv $out/Info.plist $out/Applications/netgen.app/Contents
mv $out/Netgen.icns $out/Applications/${finalAttrs.pname}.app/Contents/Resouces mv $out/Netgen.icns $out/Applications/netgen.app/Contents/Resouces
ln -s $out/bin/netgen $out/Applications/${finalAttrs.pname}.app/Contents/MacOS/netgen ln -s $out/bin/netgen $out/Applications/netgen.app/Contents/MacOS/netgen
'' ''
+ lib.optionalString stdenv.hostPlatform.isLinux '' + lib.optionalString stdenv.hostPlatform.isLinux ''
# Extract pngs from the Apple icon image and create # Extract pngs from the Apple icon image and create

View file

@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
install -D -m 0755 $src $out/bin/${finalAttrs.pname} install -D -m 0755 $src $out/bin/oakctl
runHook postInstall runHook postInstall
''; '';

View file

@ -77,14 +77,14 @@ stdenv.mkDerivation (finalAttrs: {
'' ''
runHook preInstall runHook preInstall
mkdir -p $out/{bin,share/${finalAttrs.pname}} mkdir -p $out/{bin,share/ocelot-desktop}
install -Dm644 ${finalAttrs.src} $out/share/${finalAttrs.pname}/ocelot-desktop.jar install -Dm644 ${finalAttrs.src} $out/share/ocelot-desktop/ocelot-desktop.jar
makeBinaryWrapper ${jre}/bin/java $out/bin/ocelot-desktop \ makeBinaryWrapper ${jre}/bin/java $out/bin/ocelot-desktop \
--set JAVA_HOME ${jre.home} \ --set JAVA_HOME ${jre.home} \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeLibs}" \ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeLibs}" \
--prefix PATH : "${lib.makeBinPath runtimePrograms}" \ --prefix PATH : "${lib.makeBinPath runtimePrograms}" \
--add-flags "-jar $out/share/${finalAttrs.pname}/ocelot-desktop.jar" --add-flags "-jar $out/share/ocelot-desktop/ocelot-desktop.jar"
# copy icons from zip file # copy icons from zip file
# ocelot/desktop/images/icon*.png # ocelot/desktop/images/icon*.png
@ -92,7 +92,7 @@ stdenv.mkDerivation (finalAttrs: {
for size in 16 32 64 128 256; do for size in 16 32 64 128 256; do
mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
unzip -p $out/share/${finalAttrs.pname}/ocelot-desktop.jar \ unzip -p $out/share/ocelot-desktop/ocelot-desktop.jar \
ocelot/desktop/images/icon"$size".png > $out/share/icons/hicolor/"$size"x"$size"/apps/ocelot-desktop.png ocelot/desktop/images/icon"$size".png > $out/share/icons/hicolor/"$size"x"$size"/apps/ocelot-desktop.png
done done

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
sitePackages=$out/${python3.sitePackages}/${finalAttrs.pname} sitePackages=$out/${python3.sitePackages}/payload_dumper
install -D ./payload_dumper.py $out/bin/payload_dumper install -D ./payload_dumper.py $out/bin/payload_dumper
install -D ./update_metadata_pb2.py $sitePackages/update_metadata_pb2.py install -D ./update_metadata_pb2.py $sitePackages/update_metadata_pb2.py

View file

@ -106,7 +106,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "picolibc"; owner = "picolibc";
repo = finalAttrs.pname; repo = "picolibc";
tag = finalAttrs.version; tag = finalAttrs.version;
hash = "sha256-djOZKkinsaaYD4tUEA6mKdo+5em0GP1/+rI0mIm7Vs8="; hash = "sha256-djOZKkinsaaYD4tUEA6mKdo+5em0GP1/+rI0mIm7Vs8=";
}; };

View file

@ -23,7 +23,7 @@ php.buildComposerProject2 (finalAttrs: {
postInstall = '' postInstall = ''
chmod -R u+w $out/share chmod -R u+w $out/share
mv "$out/share/php/${finalAttrs.pname}"/* $out mv "$out/share/php/pixelfed"/* $out
rm -R $out/bootstrap/cache rm -R $out/bootstrap/cache
# Move static contents for the NixOS module to pick it up, if needed. # Move static contents for the NixOS module to pick it up, if needed.
mv $out/bootstrap $out/bootstrap-static mv $out/bootstrap $out/bootstrap-static

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "20230902"; version = "20230902";
src = fetchurl { src = fetchurl {
url = "https://groups.csail.mit.edu/mac/users/gjs/6946/mechanics-system-installation/native-code/${finalAttrs.pname}-src-${finalAttrs.version}.tar.gz"; url = "https://groups.csail.mit.edu/mac/users/gjs/6946/mechanics-system-installation/native-code/scmutils-src-${finalAttrs.version}.tar.gz";
hash = "sha256-9/shOxoKwJ4uDTHmvXqhemgy3W+GUCmoqFm5e1t3W0M="; hash = "sha256-9/shOxoKwJ4uDTHmvXqhemgy3W+GUCmoqFm5e1t3W0M=";
}; };

View file

@ -106,9 +106,9 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
install -Dm755 snes9x -t "$out/bin/" install -Dm755 snes9x -t "$out/bin/"
install -Dm644 snes9x.conf.default -t "$out/share/doc/${finalAttrs.pname}/" install -Dm644 snes9x.conf.default -t "$out/share/doc/snes9x/"
install -Dm644 ../docs/{control-inputs,controls,snapshots}.txt -t \ install -Dm644 ../docs/{control-inputs,controls,snapshots}.txt -t \
"$out/share/doc/${finalAttrs.pname}/" "$out/share/doc/snes9x/"
runHook postInstall runHook postInstall
''; '';

View file

@ -90,8 +90,8 @@ stdenv.mkDerivation (finalAttrs: {
desktopItems = [ desktopItems = [
(makeDesktopItem rec { (makeDesktopItem rec {
name = "Sonic Robo Blast 2"; name = "Sonic Robo Blast 2";
exec = finalAttrs.pname; exec = "srb2";
icon = finalAttrs.pname; icon = "srb2";
comment = finalAttrs.meta.description; comment = finalAttrs.meta.description;
desktopName = name; desktopName = name;
genericName = name; genericName = name;

View file

@ -73,8 +73,8 @@ stdenv.mkDerivation (finalAttrs: {
desktopItems = [ desktopItems = [
(makeDesktopItem rec { (makeDesktopItem rec {
name = "Sonic Robo Blast 2 Kart"; name = "Sonic Robo Blast 2 Kart";
exec = finalAttrs.pname; exec = "srb2kart";
icon = finalAttrs.pname; icon = "srb2kart";
comment = "Kart racing mod based on SRB2"; comment = "Kart racing mod based on SRB2";
desktopName = name; desktopName = name;
genericName = name; genericName = name;

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "0.1.13"; version = "0.1.13";
src = fetchurl { src = fetchurl {
url = "http://iwar.free.fr/spip/IMG/gz/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; url = "http://iwar.free.fr/spip/IMG/gz/stardust-${finalAttrs.version}.tar.gz";
hash = "sha256-t5cykB5zHYYj4tlk9QDhL7YQVgEScBZw9OIVXz5NOqc="; hash = "sha256-t5cykB5zHYYj4tlk9QDhL7YQVgEScBZw9OIVXz5NOqc=";
}; };

View file

@ -23,10 +23,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
type = "Application"; type = "Application";
name = finalAttrs.pname; name = "stegsolve";
desktopName = "Stegsolve"; desktopName = "Stegsolve";
comment = "A steganographic image analyzer, solver and data extractor for challanges"; comment = "A steganographic image analyzer, solver and data extractor for challanges";
exec = finalAttrs.pname; exec = "stegsolve";
categories = [ "Graphics" ]; categories = [ "Graphics" ];
}) })
]; ];

View file

@ -27,21 +27,21 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin $out/share/${finalAttrs.pname}/ mkdir -p $out/bin $out/share/stretchly/
mv resources/app.asar* $out/share/${finalAttrs.pname}/ mv resources/app.asar* $out/share/stretchly/
mkdir -p $out/share/applications mkdir -p $out/share/applications
ln -s ${finalAttrs.desktopItem}/share/applications/* $out/share/applications/ ln -s ${finalAttrs.desktopItem}/share/applications/* $out/share/applications/
makeWrapper ${electron}/bin/electron $out/bin/${finalAttrs.pname} \ makeWrapper ${electron}/bin/electron $out/bin/stretchly \
--add-flags $out/share/${finalAttrs.pname}/app.asar --add-flags $out/share/stretchly/app.asar
runHook postInstall runHook postInstall
''; '';
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = finalAttrs.pname; name = "stretchly";
exec = finalAttrs.pname; exec = "stretchly";
icon = finalAttrs.icon; icon = finalAttrs.icon;
desktopName = "Stretchly"; desktopName = "Stretchly";
genericName = "Stretchly"; genericName = "Stretchly";

View file

@ -51,10 +51,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/{bin,lib/${finalAttrs.pname}} mkdir -p $out/{bin,lib/stylelint-lsp}
mv {dist,node_modules} $out/lib/${finalAttrs.pname} mv {dist,node_modules} $out/lib/stylelint-lsp
chmod a+x $out/lib/${finalAttrs.pname}/dist/index.js chmod a+x $out/lib/stylelint-lsp/dist/index.js
ln -s $out/lib/${finalAttrs.pname}/dist/index.js $out/bin/stylelint-lsp ln -s $out/lib/stylelint-lsp/dist/index.js $out/bin/stylelint-lsp
runHook postInstall runHook postInstall
''; '';

View file

@ -75,13 +75,13 @@ stdenv.mkDerivation (finalAttrs: {
for i in 16 24 48 64 96 128 256 512; do for i in 16 24 48 64 96 128 256 512; do
mkdir -p $out/share/icons/hicolor/''${i}x''${i}/apps mkdir -p $out/share/icons/hicolor/''${i}x''${i}/apps
magick scribbleres/write_512.png -resize ''${i}x''${i} $out/share/icons/hicolor/''${i}x''${i}/apps/${finalAttrs.pname}.png magick scribbleres/write_512.png -resize ''${i}x''${i} $out/share/icons/hicolor/''${i}x''${i}/apps/styluslabs-write.png
done done
install -Dm444 scribbleres/linux/Write.desktop -t $out/share/applications install -Dm444 scribbleres/linux/Write.desktop -t $out/share/applications
substituteInPlace $out/share/applications/Write.desktop \ substituteInPlace $out/share/applications/Write.desktop \
--replace-fail 'Exec=/opt/Write/Write' 'Exec=Write' \ --replace-fail 'Exec=/opt/Write/Write' 'Exec=Write' \
--replace-fail 'Icon=Write144x144' 'Icon=${finalAttrs.pname}' --replace-fail 'Icon=Write144x144' 'Icon=styluslabs-write'
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -56,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
install -Dm0755 -t "$out/bin/" "build/${finalAttrs.pname}" install -Dm0755 -t "$out/bin/" "build/texpresso"
runHook postInstall runHook postInstall
''; '';

View file

@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
unpackPhase = '' unpackPhase = ''
runHook preUnpack runHook preUnpack
mkdir -p "$out/share" "$out/opt/${finalAttrs.pname}" "$out/bin" mkdir -p "$out/share" "$out/opt/ticktick" "$out/bin"
dpkg-deb --fsys-tarfile "$src" | tar --extract --directory="$out" dpkg-deb --fsys-tarfile "$src" | tar --extract --directory="$out"
runHook postUnpack runHook postUnpack
@ -66,13 +66,13 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
cp -av $out/opt/TickTick/* $out/opt/${finalAttrs.pname} cp -av $out/opt/TickTick/* $out/opt/ticktick
cp -av $out/usr/share/* $out/share cp -av $out/usr/share/* $out/share
rm -rf $out/usr $out/opt/TickTick rm -rf $out/usr $out/opt/TickTick
ln -sf "$out/opt/${finalAttrs.pname}/${finalAttrs.pname}" "$out/bin/${finalAttrs.pname}" ln -sf "$out/opt/ticktick/ticktick" "$out/bin/ticktick"
substituteInPlace "$out/share/applications/${finalAttrs.pname}.desktop" \ substituteInPlace "$out/share/applications/ticktick.desktop" \
--replace "Exec=/opt/TickTick/ticktick" "Exec=$out/bin/${finalAttrs.pname}" --replace "Exec=/opt/TickTick/ticktick" "Exec=$out/bin/ticktick"
runHook postInstall runHook postInstall
''; '';

View file

@ -26,8 +26,8 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = '' postInstall = ''
# Copy docs # Copy docs
install -dm755 "$out/share/doc/${finalAttrs.pname}" install -dm755 "$out/share/doc/ttaenc"
install -m644 "ChangeLog-${finalAttrs.version}" README "$out/share/doc/${finalAttrs.pname}" install -m644 "ChangeLog-${finalAttrs.version}" README "$out/share/doc/ttaenc"
''; '';
meta = { meta = {

View file

@ -20,7 +20,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin $out/share/licenses/${finalAttrs.pname} mkdir -p $out/bin $out/share/licenses/ufetch
${ ${
if !full then if !full then
"install -Dm755 ufetch-${osName} $out/bin/ufetch" "install -Dm755 ufetch-${osName} $out/bin/ufetch"
@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
ln -s $out/bin/ufetch-${osName} $out/bin/ufetch ln -s $out/bin/ufetch-${osName} $out/bin/ufetch
'' ''
} }
install -Dm644 LICENSE $out/share/licenses/${finalAttrs.pname}/LICENSE install -Dm644 LICENSE $out/share/licenses/ufetch/LICENSE
runHook postInstall runHook postInstall
''; '';

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "untie"; pname = "untie";
version = "0.3"; version = "0.3";
src = fetchurl { src = fetchurl {
url = "http://guichaz.free.fr/untie/files/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2"; url = "http://guichaz.free.fr/untie/files/untie-${finalAttrs.version}.tar.bz2";
sha256 = "1334ngvbi4arcch462mzi5vxvxck4sy1nf0m58116d9xmx83ak0m"; sha256 = "1334ngvbi4arcch462mzi5vxvxck4sy1nf0m58116d9xmx83ak0m";
}; };

View file

@ -24,10 +24,10 @@ stdenv.mkDerivation (finalAttrs: {
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
name = finalAttrs.pname; name = "whatsie";
desktopName = "Whatsie"; desktopName = "Whatsie";
icon = finalAttrs.pname; icon = "whatsie";
exec = finalAttrs.pname; exec = "whatsie";
comment = finalAttrs.meta.description; comment = finalAttrs.meta.description;
}) })
]; ];

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jupyter-xeus"; owner = "jupyter-xeus";
repo = finalAttrs.pname; repo = "xeus";
tag = finalAttrs.version; tag = finalAttrs.version;
hash = "sha256-nR247SGnc3TSj6PCrJmY6ccACvYKeSYFMgoawyYLBNs="; hash = "sha256-nR247SGnc3TSj6PCrJmY6ccACvYKeSYFMgoawyYLBNs=";
}; };

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
installCheckPhase = '' installCheckPhase = ''
runHook preInstallCheck runHook preInstallCheck
$out/bin/${finalAttrs.pname} -h $out/bin/zcfan -h
runHook postInstallCheck runHook postInstallCheck
''; '';

View file

@ -40,7 +40,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
install -D bin/git-forgit $out/bin/git-forgit install -D bin/git-forgit $out/bin/git-forgit
install -D completions/_git-forgit $out/share/zsh/site-functions/_git-forgit install -D completions/_git-forgit $out/share/zsh/site-functions/_git-forgit
install -D forgit.plugin.zsh $out/share/zsh/${finalAttrs.pname}/forgit.plugin.zsh install -D forgit.plugin.zsh $out/share/zsh/zsh-forgit/forgit.plugin.zsh
wrapProgram $out/bin/git-forgit \ wrapProgram $out/bin/git-forgit \
--prefix PATH : ${ --prefix PATH : ${
lib.makeBinPath [ lib.makeBinPath [