iced-template: remove commonArgs

these are mostly useful for crane,
and were only acting as unnecessary complexity here
This commit is contained in:
electria 2026-08-22 17:56:48 -07:00
commit 9b308d6b54
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -33,24 +33,6 @@
wayland wayland
]; ];
commonArgs = {
# all that's needed for artifacts and checks
nativeBuildInputs = with pkgs; [
# pkg-config
];
buildInputs = with pkgs; [
];
strictDeps = true;
__structuredAttrs = true;
src = lib.sourceFilesBySuffices ./. [
"Cargo.toml"
"Cargo.lock"
".rs"
];
};
crate = crate =
let let
desktopItem = pkgs.makeDesktopItem { desktopItem = pkgs.makeDesktopItem {
@ -59,30 +41,35 @@
exec = name; exec = name;
}; };
in in
pkgs.rustPlatform.buildRustPackage ( pkgs.rustPlatform.buildRustPackage rec {
commonArgs inherit name;
// {
inherit name;
cargoLock.lockFile = "${commonArgs.src}/Cargo.lock";
nativeBuildInputs = commonArgs.nativeBuildInputs ++ [ src = lib.sourceFilesBySuffices ./. [
pkgs.autoPatchelfHook "Cargo.toml"
]; "Cargo.lock"
".rs"
];
cargoLock.lockFile = "${src}/Cargo.lock";
buildInputs = commonArgs.buildInputs ++ [ nativeBuildInputs = with pkgs; [
pkgs.libgcc autoPatchelfHook
]; ];
buildInputs = with pkgs; [
libgcc
];
runtimeDependencies = dlDeps; runtimeDependencies = dlDeps;
doCheck = false; postFixup = ''
mkdir -p "$out/share/applications"
ln -s "${desktopItem}"/share/applications/* "$out/share/applications/"
'';
postFixup = '' doCheck = false;
mkdir -p "$out/share/applications"
ln -s "${desktopItem}"/share/applications/* "$out/share/applications/" strictDeps = true;
''; __structuredAttrs = true;
} };
);
in in
{ {
packages.default = crate; packages.default = crate;