Skip to content

Commit

Permalink
Merge pull request #326683 from eclairevoyant/pname-misuse-pt-1
Browse files Browse the repository at this point in the history
Fix pname misuse, part 1
  • Loading branch information
Mic92 authored Jul 13, 2024
2 parents 01ab27c + d1bbebd commit e570759
Show file tree
Hide file tree
Showing 114 changed files with 192 additions and 192 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/audio/aucatctl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "0.1";

src = fetchurl {
url = "http://www.sndio.org/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
url = "http://www.sndio.org/aucatctl-${finalAttrs.version}.tar.gz";
sha256 = "524f2fae47db785234f166551520d9605b9a27551ca438bd807e3509ce246cf0";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/carla/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "falkTX";
repo = finalAttrs.pname;
repo = "carla";
rev = "v${finalAttrs.version}";
hash = "sha256-H15T/z/IRfgWdqToTzq2eJ7q3n9Kj44IZXsd4uaipuU=";
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/jack-passthrough/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
, fmt_9
}:

stdenv.mkDerivation (finalAttrs: {
stdenv.mkDerivation {
pname = "jack-passthrough";
version = "2021-9-25";

# https://github.com/guysherman/jack-passthrough
src = fetchFromGitHub {
owner = "guysherman";
repo = finalAttrs.pname;
repo = "jack-passthrough";
rev = "aad03b7c5ccc4a4dcb8fa38c49aa64cb9d628660";
hash = "sha256-9IsNaLW5dYAqiwe+vX0+D3oIKFP2TIfy1q1YaqmS6wE=";
};
Expand All @@ -37,4 +37,4 @@ stdenv.mkDerivation (finalAttrs: {
platforms = [ "x86_64-linux" ];
mainProgram = "jack-passthru";
};
})
}
2 changes: 1 addition & 1 deletion pkgs/applications/audio/zrythm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "1.0.0-rc.1";

src = fetchzip {
url = "https://www.zrythm.org/releases/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
url = "https://www.zrythm.org/releases/zrythm-${finalAttrs.version}.tar.xz";
sha256 = "sha256-Ljbw7bjGI6js4OP9KEXCkhC9AMbInSz0nn+pROm4vXw=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/geany/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
outputs = [ "out" "dev" "doc" "man" ];

src = fetchurl {
url = "https://download.geany.org/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
url = "https://download.geany.org/geany-${finalAttrs.version}.tar.bz2";
hash = "sha256-VltM0vAxHB46Fn7HHEoy26ZC4P5VSuW7a4F3t6dMzJI=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/ocrfeeder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "0.8.5";

src = fetchurl {
url = "mirror://gnome/sources/${finalAttrs.pname}/${lib.versions.majorMinor finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
url = "mirror://gnome/sources/ocrfeeder/${lib.versions.majorMinor finalAttrs.version}/ocrfeeder-${finalAttrs.version}.tar.xz";
sha256 = "sha256-sD0qWUndguJzTw0uy0FIqupFf4OX6dTFvcd+Mz+8Su0=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/bemenu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "Cloudef";
repo = finalAttrs.pname;
repo = "bemenu";
rev = finalAttrs.version;
hash = "sha256-wdOrVX4AgGXySlwmqFRp9OWoSkEYBIZumBGTrFfyNpg=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/bibletime/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "bibletime";
repo = finalAttrs.pname;
repo = "bibletime";
rev = "v${finalAttrs.version}";
hash = "sha256-4O8F5/EyoJFJBEWOAs9lzN3TKuu/CEdKfPaOF8gNqps=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/blender/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "4.1.1";

src = fetchurl {
url = "https://download.blender.org/source/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
url = "https://download.blender.org/source/blender-${finalAttrs.version}.tar.xz";
hash = "sha256-T7s69k0/hN9ccQN0hFQibBiFwawu1Tc9DOoegOgsCEg=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/citations/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = finalAttrs.pname;
repo = "citations";
rev = finalAttrs.version;
hash = "sha256-RV9oQcXzRsNcvZc/8Xt7qZ/88DvHofC2Av0ftxzeF6Q=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/genesys/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "1.0.7";

src = fetchurl {
url = "https://github.com/mrlem/genesys/releases/download/v${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
url = "https://github.com/mrlem/genesys/releases/download/v${finalAttrs.version}/genesys-${finalAttrs.version}.tar.gz";
hash = "sha256-I1lEVvwRiGf1f4zUtqKhSb+it/nC8WAmw5S6edquOj8=";
};

Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/rofi-bluetooth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
, bluez
}:

stdenv.mkDerivation (finalAttrs: {
stdenv.mkDerivation {
pname = "rofi-bluetooth";
version = "unstable-2023-02-03";

src = fetchFromGitHub {
owner = "nickclyde";
repo = finalAttrs.pname;
repo = "rofi-bluetooth";
# https://github.com/nickclyde/rofi-bluetooth/issues/19
rev = "9d91c048ff129819f4c6e9e48a17bd54343bbffb";
sha256 = "sha256-1Xe3QFThIvJDCUznDP5ZBzwZEMuqmxpDIV+BcVvQDG8=";
Expand All @@ -38,4 +38,4 @@ stdenv.mkDerivation (finalAttrs: {
mainProgram = "rofi-bluetooth";
platforms = platforms.linux;
};
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "0.92.2";

src = fetchurl {
url = "mirror://gnome/sources/${finalAttrs.pname}/${lib.versions.majorMinor finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
url = "mirror://gnome/sources/gnome-network-displays/${lib.versions.majorMinor finalAttrs.version}/gnome-network-displays-${finalAttrs.version}.tar.xz";
sha256 = "sha256-df35UJnRolVSiYcArpnrglxNKbTKA3LAGsNwlDF7cj4=";
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: builtins.removeAttrs pinData [ "hashes" ] // {

src = fetchFromGitHub {
owner = "vector-im";
repo = finalAttrs.pname;
repo = "element-web";
rev = "v${finalAttrs.version}";
hash = webSrcHash;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "vector-im";
repo = finalAttrs.pname;
repo = "hydrogen-web";
rev = "v${finalAttrs.version}";
hash = "sha256-u8Yex3r7EZH+JztQHJbfncYeyyl6hgb1ZNFIg//wcb0=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/office/ticktick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "2.0.30";

src = fetchurl {
url = "https://d2atcrkye2ik4e.cloudfront.net/download/linux/linux_deb_x64/${finalAttrs.pname}-${finalAttrs.version}-amd64.deb";
url = "https://d2atcrkye2ik4e.cloudfront.net/download/linux/linux_deb_x64/ticktick-${finalAttrs.version}-amd64.deb";
hash = "sha256-oo1ssIU6nYMBoEc888xAiTS7PHuEkoaC7KsPRTwL0ZA=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/science/biology/migrate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "migrate";

src = fetchurl {
url = "https://peterbeerli.com/migrate-html5/download_version4/${finalAttrs.pname}-${finalAttrs.version}.src.tar.gz";
url = "https://peterbeerli.com/migrate-html5/download_version4/migrate-${finalAttrs.version}.src.tar.gz";
hash = "sha256-twkoR9L6VPUye12OC0B5w0PxcxyKain6RkhCswLEdwg=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/science/logic/surelog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "chipsalliance";
repo = finalAttrs.pname;
repo = "surelog";
rev = "v${finalAttrs.version}";
hash = "sha256-V4LmW4ca6KfugOu0XnGwutRqWR/9K6ESokHOB2yAVag=";
fetchSubmodules = false; # we use all dependencies from nix
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/science/logic/uhdm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "chipsalliance";
repo = finalAttrs.pname;
repo = "UHDM";
rev = "v${finalAttrs.version}";
hash = "sha256-va8qAzsg589C6rLmG1uIMDr4X30qpBgRO1ZVKdEs5ok=";
fetchSubmodules = false; # we use all dependencies from nix
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/science/math/maxima/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "5.46.0";

src = fetchurl {
url = "mirror://sourceforge/${finalAttrs.pname}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
url = "mirror://sourceforge/maxima/maxima-${finalAttrs.version}.tar.gz";
sha256 = "sha256-c5Dwa0jaZckDPosvYpuXi5AFZFSlQCLbfecOIiWqiwc=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/video/obs-studio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "obsproject";
repo = finalAttrs.pname;
repo = "obs-studio";
rev = finalAttrs.version;
sha256 = "sha256-M4IINBoYrgkM37ykb4boHyWP8AxwMX0b7IAeeNIw9Qo=";
fetchSubmodules = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "nowrep";
repo = finalAttrs.pname;
repo = "obs-vkcapture";
rev = "v${finalAttrs.version}";
hash = "sha256-hYPQ1N4k4eb+bvGWZqaQJ/C8C5Lh8ooZ03raGF5ORgE=";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "hyprwm";
repo = finalAttrs.pname;
repo = "hyprland-protocols";
rev = "v${finalAttrs.version}";
hash = "sha256-HUklK5u86w2Yh9dOkk4FdsL8eehcOZ95jPhLixGDRQY=";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "hyprwm";
repo = finalAttrs.pname;
repo = "hyprpaper";
rev = "v${finalAttrs.version}";
hash = "sha256-l13c8ALA7ZKDgluYA1C1OfkDGYD6e1/GR6LJnxCLRhA=";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "hyprwm";
repo = finalAttrs.pname;
repo = "hyprpicker";
rev = "v${finalAttrs.version}";
hash = "sha256-BYQF1zM6bJ44ag9FJ0aTSkhOTY9U7uRdp3SmRCs5fJM=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/al/alsa-lib/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "1.2.11";

src = fetchurl {
url = "mirror://alsa/lib/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
url = "mirror://alsa/lib/alsa-lib-${finalAttrs.version}.tar.bz2";
hash = "sha256-nz8vabmV+a03NZBy+8aaOoi/uggfyD6b4w4UZieVu00=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ba/babeltrace/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: {
version = "1.5.11";

src = fetchurl {
url = "https://www.efficios.com/files/babeltrace/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
url = "https://www.efficios.com/files/babeltrace/babeltrace-${finalAttrs.version}.tar.bz2";
sha256 = "Z7Q6qu9clR+nrxpVfPcgGhH+iYdrfCK6CgPLwxbbWpw=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ba/base45/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildNimPackage (finalAttrs: {
version = "20230124";
src = fetchFromSourcehut {
owner = "~ehmry";
repo = finalAttrs.pname;
repo = "base45";
rev = finalAttrs.version;
hash = "sha256-9he+14yYVGt2s1IuRLPRsv23xnJzERkWRvIHr3PxFYk=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/c2/c2nim/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildNimPackage (finalAttrs: {
version = "0.9.19";
src = fetchFromGitHub {
owner = "nim-lang";
repo = finalAttrs.pname;
repo = "c2nim";
rev = finalAttrs.version;
hash = "sha256-E8sAhTFIWAnlfWyuvqK8h8g7Puf5ejLEqgLNb5N17os=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/hy/hyprland/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "hyprwm";
repo = finalAttrs.pname;
repo = "hyprland";
fetchSubmodules = true;
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-JmfnYz+9a4TjNl3mAus1VpoWtTI9d1xkW9MHbkcV0Po=";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/id/ideamaker/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
);
in
fetchurl {
url = "https://download.raise3d.com/${finalAttrs.pname}/release/${semver}/ideaMaker_${finalAttrs.version}-ubuntu_amd64.deb";
url = "https://download.raise3d.com/ideamaker/release/${semver}/ideaMaker_${finalAttrs.version}-ubuntu_amd64.deb";
sha256 = "sha256-aTVWCTgnVKD16uhJUVz0vR7KPGJqCVj0xoL53Qi3IKM=";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/li/libvpl/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "intel";
repo = finalAttrs.pname;
repo = "libvpl";
rev = "v${finalAttrs.version}";
hash = "sha256-2yfJo4iwI/h0CJ+mJJ3cAyG5S7KksUibwJHebF3MR+E=";
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/mf/mfoc-hardnested/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
, xz
}:

stdenv.mkDerivation (finalAttrs: {
stdenv.mkDerivation {
pname = "mfoc-hardnested";
version = "unstable-2023-03-27";

src = fetchFromGitHub {
owner = "nfc-tools";
repo = finalAttrs.pname;
repo = "mfoc-hardnested";
rev = "a6007437405a0f18642a4bbca2eeba67c623d736";
hash = "sha256-YcUMS4wx5ML4yYiARyfm7T7nLomgG9YCSFj+ZUg5XZk=";
};
Expand All @@ -37,4 +37,4 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = with maintainers; [ azuwis ];
platforms = platforms.unix;
};
})
}
2 changes: 1 addition & 1 deletion pkgs/by-name/ne/neural-amp-modeler-lv2/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchFromGitHub {
owner = "mikeoliphant";
repo = finalAttrs.pname;
repo = "neural-amp-modeler-lv2";
rev = finalAttrs.version;
fetchSubmodules = true;
hash = "sha256-sRZngmivNvSWcjkIqcqjjaIgXFH8aMq+/caNroXmzIk=";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ni/nimdow/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildNimPackage (finalAttrs: {

src = fetchFromGitHub {
owner = "avahe-kellenberger";
repo = finalAttrs.pname;
repo = "nimdow";
rev = "v${finalAttrs.version}";
hash = "sha256-GPu3Z63rFBgCCV7bdBg9cJh5thv2xrv/nSMa5Q/zp48=";
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/se/serious-sans/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
, fetchFromGitHub
}:

stdenvNoCC.mkDerivation (finalAttrs: {
stdenvNoCC.mkDerivation {
pname = "serious-sans";
version = "unstable-2023-09-04";

src = fetchFromGitHub {
owner = "kaBeech";
repo = finalAttrs.pname;
repo = "serious-sans";
rev = "a23f2b303fa3b1ec8788c5abba67b44ca5a3cc0a";
hash = "sha256-sPb9ZVDTBaZHT0Q/I9OfP7BMYJXPBiKkebzKgUHNuZM=";
};
Expand All @@ -30,4 +30,4 @@ stdenvNoCC.mkDerivation (finalAttrs: {
maintainers = with lib.maintainers; [ CobaltCause ];
platforms = lib.platforms.all;
};
})
}
2 changes: 1 addition & 1 deletion pkgs/by-name/st/steam-play-none/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
pname = "steam-play-none";
version = "0-unstable-2022-12-15";
src = fetchFromGitHub {
repo = finalAttrs.pname;
owner = "Scrumplex";
repo = "steam-play-none";
rev = "42e38706eb37fdaaedbe9951d59ef44148fcacbf";
hash = "sha256-sSHLrB5TlGMKpztTnbh5oIOhcrRd+ke2OUUbiQUqoh0=";
};
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/sw/swaycwd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildNimPackage (finalAttrs: {

src = fetchFromGitLab {
owner = "cab404";
repo = finalAttrs.pname;
repo = "swaycwd";
rev = "v${finalAttrs.version}";
hash = "sha256-R/LnojbA0vBQVivGLaoM0+M4qVJ7vjf4kggB59i896w=";
};
Expand Down
Loading

0 comments on commit e570759

Please sign in to comment.