wifi-qr: 0.3-unstable-2023-09-30 -> 0.4

This commit is contained in:
emaryn
2025-03-13 03:18:10 +08:00
parent 220d184ee8
commit 1c5cd8ffd0
+18 -18
View File
@@ -13,9 +13,9 @@
xdg-utils,
zbar,
}:
stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation (finalAttr: {
pname = "wifi-qr";
version = "0.3-unstable-2023-09-30";
version = "0.4";
outputs = [
"out"
@@ -25,8 +25,8 @@ stdenvNoCC.mkDerivation {
src = fetchFromGitHub {
owner = "kokoye2007";
repo = "wifi-qr";
rev = "821892001f735dc250a549ea36329cdc767db9c9";
hash = "sha256-kv0qjO+wn4t//NmKkHB+tZB4eRNm+WRUa5rij+7Syuk=";
tag = "v${finalAttr.version}";
hash = "sha256-tE+9bFDgiFS1Jj+AAwTMKjMh5wS5/gkRSQaCBR/riYQ=";
};
buildInputs = [
@@ -50,22 +50,22 @@ stdenvNoCC.mkDerivation {
dontConfigure = true;
postPatch = ''
substituteInPlace src/wifi-qr.desktop \
--replace "Icon=wifi-qr.svg" "Icon=wifi-qr"
substituteInPlace src/wifi-qr \
--replace "/usr/share/doc/wifi-qr/copyright" "$out/share/doc/wifi-qr/copyright"
substituteInPlace wifi-qr.desktop \
--replace-fail "Icon=wifi-qr.svg" "Icon=wifi-qr"
substituteInPlace wifi-qr \
--replace-fail "/usr/share/doc/wifi-qr/copyright" "$out/share/doc/wifi-qr/copyright"
'';
installPhase = ''
runHook preInstall
install -Dm755 src/wifi-qr $out/bin/wifi-qr
install -Dm755 wifi-qr $out/bin/wifi-qr
install -Dm644 src/wifi-qr.desktop $out/share/applications/wifi-qr.desktop
install -Dm644 src/wifi-qr.svg $out/share/icons/hicolor/scalable/apps/wifi-qr.svg
install -Dm644 src/LICENSE $out/share/doc/wifi-qr/copyright
install -Dm644 wifi-qr.desktop $out/share/applications/wifi-qr.desktop
install -Dm644 wifi-qr.svg $out/share/icons/hicolor/scalable/apps/wifi-qr.svg
install -Dm644 LICENSE $out/share/doc/wifi-qr/copyright
installManPage src/wifi-qr.1
installManPage wifi-qr.1
runHook postInstall
'';
@@ -79,12 +79,12 @@ stdenvNoCC.mkDerivation {
runHook postFixup
'';
meta = with lib; {
meta = {
description = "WiFi password sharing via QR codes";
homepage = "https://github.com/kokoye2007/wifi-qr";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ ambroisie ];
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ ambroisie ];
mainProgram = "wifi-qr";
platforms = platforms.linux;
platforms = lib.platforms.linux;
};
}
})