treewide: remove repo = pname idiom, format pkgs

This commit is contained in:
2025-04-06 18:30:35 +00:00
parent 3d08c79b42
commit fcfa54e284
7 changed files with 95 additions and 112 deletions

View File

@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lemmy-gtk"; owner = "lemmy-gtk";
repo = pname; repo = "lemoa";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-XyVl0vreium83d6NqiMkdER3U0Ra0GeAgTq4pyrZyZE="; hash = "sha256-XyVl0vreium83d6NqiMkdER3U0Ra0GeAgTq4pyrZyZE=";
}; };

View File

@@ -1,33 +1,21 @@
{ {
# cairo,
fetchFromGitHub, fetchFromGitHub,
# gtk3,
lib, lib,
libglvnd, libglvnd,
# libgbm,
libxkbcommon, libxkbcommon,
# fontconfig,
# freetype,
nix-update-script, nix-update-script,
# pango,
pkg-config,
rustPlatform, rustPlatform,
# vulkan-headers,
vulkan-loader, vulkan-loader,
wayland, wayland,
wayland-scanner,
wayland-protocols,
# wrapGAppsHook3,
# xorg,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage {
pname = "mslicer"; pname = "mslicer";
version = "0.2.0-unstable-2025-04-05"; version = "0.2.0-unstable-2025-04-05";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "connorslade"; owner = "connorslade";
repo = pname; repo = "mslicer";
rev = "fe08ef5e1f2c17b0a80bb993b423f751d7ed3c8e"; rev = "fe08ef5e1f2c17b0a80bb993b423f751d7ed3c8e";
hash = "sha256-PUIMy+SaqMgbTdFjA7tACoOkYw3qm7Yt4lZSZb+b7pQ="; hash = "sha256-PUIMy+SaqMgbTdFjA7tACoOkYw3qm7Yt4lZSZb+b7pQ=";
}; };
@@ -36,24 +24,10 @@ rustPlatform.buildRustPackage rec {
useFetchCargoVendor = true; useFetchCargoVendor = true;
buildInputs = [ buildInputs = [
# cairo
# gtk3
libglvnd libglvnd
# libgbm
libxkbcommon libxkbcommon
# xorg.libX11
# xorg.libXcursor
# xorg.libXi
# xorg.libxcb
# xorg.libXrender
# fontconfig
# freetype
# openssl
# pango
# vulkan-headers
vulkan-loader vulkan-loader
wayland wayland
# wayland-protocols
]; ];
# from pkgs/by-name/al/alvr/package.nix, to get it to actually link against wayland # from pkgs/by-name/al/alvr/package.nix, to get it to actually link against wayland

View File

@@ -41,25 +41,26 @@
# meta.description = "A mobile-friendly sublime music fork"; # meta.description = "A mobile-friendly sublime music fork";
# })) # }))
{ fetchFromGitLab {
, fetchFromGitea docbook-xsl-nons,
, docbook_xml_dtd_43 docbook_xml_dtd_43,
, docbook-xsl-nons fetchFromGitHub,
, gtk-doc fetchFromGitLab,
, lib fetchFromGitea,
, libhandy gobject-introspection,
, fetchFromGitHub gtk-doc,
, python3 gtk3,
, gobject-introspection lib,
, gtk3 libhandy,
, pango pango,
, wrapGAppsHook python3,
, xvfb-run wrapGAppsHook,
, chromecastSupport ? false xvfb-run,
, serverSupport ? false chromecastSupport ? false,
, keyringSupport ? true keyringSupport ? true,
, notifySupport ? true, libnotify networkSupport ? true, networkmanager,
, networkSupport ? true, networkmanager notifySupport ? true, libnotify,
serverSupport ? false,
}: }:
let let
@@ -84,7 +85,7 @@ python.pkgs.buildPythonApplication rec {
# src = fetchFromGitLab { # src = fetchFromGitLab {
# owner = "sublime-music"; # owner = "sublime-music";
# repo = pname; # repo = "sublime-music-mobile;
# rev = "v${version}"; # rev = "v${version}";
# sha256 = "sha256-n77mTgElwwFaX3WQL8tZzbkPwnsyQ08OW9imSOjpBlg="; # sha256 = "sha256-n77mTgElwwFaX3WQL8tZzbkPwnsyQ08OW9imSOjpBlg=";
# }; # };
@@ -102,10 +103,12 @@ python.pkgs.buildPythonApplication rec {
sha256 = "sha256-jyC3Fh+b+MBLjHlFr3nOOM7eT/3PPF7dynHsPJaIzLU="; sha256 = "sha256-jyC3Fh+b+MBLjHlFr3nOOM7eT/3PPF7dynHsPJaIzLU=";
}; };
nativeBuildInputs = [ nativeBuildInputs =
[
gobject-introspection gobject-introspection
wrapGAppsHook wrapGAppsHook
] ++ (with python.pkgs; [ ]
++ (with python.pkgs; [
poetry-core poetry-core
pythonRelaxDepsHook pythonRelaxDepsHook
]); ]);
@@ -116,7 +119,8 @@ python.pkgs.buildPythonApplication rec {
"python-mpv" "python-mpv"
]; ];
buildInputs = [ buildInputs =
[
gtk3 gtk3
pango pango
(libhandy.overrideAttrs (superhandy: { (libhandy.overrideAttrs (superhandy: {
@@ -136,10 +140,11 @@ python.pkgs.buildPythonApplication rec {
})) }))
] ]
++ lib.optional notifySupport libnotify ++ lib.optional notifySupport libnotify
++ lib.optional networkSupport networkmanager ++ lib.optional networkSupport networkmanager;
;
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs =
with python.pkgs;
[
bleach bleach
dataclasses-json dataclasses-json
deepdiff deepdiff
@@ -154,8 +159,7 @@ python.pkgs.buildPythonApplication rec {
] ]
++ lib.optional chromecastSupport pychromecast ++ lib.optional chromecastSupport pychromecast
++ lib.optional keyringSupport keyring ++ lib.optional keyringSupport keyring
++ lib.optional serverSupport bottle ++ lib.optional serverSupport bottle;
;
postPatch = '' postPatch = ''
sed -i "/--cov/d" setup.cfg sed -i "/--cov/d" setup.cfg
@@ -199,6 +203,9 @@ python.pkgs.buildPythonApplication rec {
description = "GTK3 Subsonic/Airsonic client"; description = "GTK3 Subsonic/Airsonic client";
homepage = "https://sublimemusic.app/"; homepage = "https://sublimemusic.app/";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ albakham sumnerevans ]; maintainers = with maintainers; [
albakham
sumnerevans
];
}; };
} }

View File

@@ -1,6 +1,7 @@
{ lib {
, rustPlatform lib,
, fetchFromGitHub rustPlatform,
fetchFromGitHub,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@@ -9,7 +10,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bolcom"; owner = "bolcom";
repo = pname; repo = "unftp";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-+UL8xflnumOiWL5b9/azH9OW+X+6hRcxjiyWhCSWQRg="; hash = "sha256-+UL8xflnumOiWL5b9/azH9OW+X+6hRcxjiyWhCSWQRg=";
}; };

View File

@@ -1,8 +1,9 @@
{ lib {
, buildPackages buildPackages,
, fetchFromGitHub fetchFromGitHub,
, rustfmt lib,
, rustPlatform rustPlatform,
rustfmt,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@@ -11,7 +12,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "adityapk00"; owner = "adityapk00";
repo = pname; repo = "zecwallet-light-cli";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-8qr6GIldJcybQwXbdZxFVGvFPJErLpqCEIuGJw1z0qQ="; hash = "sha256-8qr6GIldJcybQwXbdZxFVGvFPJErLpqCEIuGJw1z0qQ=";
}; };

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "TODO"; owner = "TODO";
repo = pname; repo = "TODO";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-TODO"; hash = "sha256-TODO";
}; };

View File

@@ -10,7 +10,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ruslashev"; owner = "ruslashev";
repo = pname; repo = "elfcat";
rev = version; rev = version;
hash = "sha256-NzFKNCCPWBj/fhaEJF34nyeyvLMeQwIcQgTlYc6mgYo="; hash = "sha256-NzFKNCCPWBj/fhaEJF34nyeyvLMeQwIcQgTlYc6mgYo=";
}; };