coppwr: 1.7.0 -> 1.7.1 (#468420)

This commit is contained in:
Aleksana
2025-12-06 14:22:49 +00:00
committed by GitHub
+12 -8
View File
@@ -11,18 +11,18 @@
xorg,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "coppwr";
version = "1.7.0";
version = "1.7.1";
src = fetchFromGitHub {
owner = "dimtpap";
repo = "coppwr";
tag = version;
hash = "sha256-9oFWX44jToJh0vJaDV/KZXVNQgLG0lr1iA+0hInAhLA=";
tag = finalAttrs.version;
hash = "sha256-L0MpMh3HuWX0zxG50OGZDa+wX5E55/dU6jt6Iei99Ho=";
};
cargoHash = "sha256-Fq8I1pt83yqrjiA4VXA+z7o2LFTac2SonAwTycQRP8M=";
cargoHash = "sha256-tcGyoPVoJFhbXZFe23d00Z7FUwIo5J02EfPTBzCGE64=";
nativeBuildInputs = [
pkg-config
@@ -49,10 +49,14 @@ rustPlatform.buildRustPackage rec {
install -m 444 \
-D $src/assets/io.github.dimtpap.coppwr.metainfo.xml \
-t $out/share/metainfo
cp $src/assets/icon/scalable.svg $out/share/icons/hicolor/scalable/apps/io.github.dimtpap.coppwr.svg
install -m 444 \
-D $src/assets/icon/scalable.svg \
-t $out/share/icons/hicolor/scalable/apps/io.github.dimtpap.coppwr.svg
for size in 32 48 64 128 256 512; do
mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
cp $src/assets/icon/"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/io.github.dimtpap.coppwr.png
install -m 444 \
-D $src/assets/icon/"$size".png \
-t $out/share/icons/hicolor/"$size"x"$size"/apps/io.github.dimtpap.coppwr.png
done
'';
@@ -75,4 +79,4 @@ rustPlatform.buildRustPackage rec {
mainProgram = "coppwr";
platforms = lib.platforms.linux;
};
}
})