ostinato: migrate to by-name, refactor (#535747)

This commit is contained in:
Weijia Wang 2026-07-06 12:39:09 +00:00 committed by GitHub
commit a3b23a411f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 22 deletions

View file

@ -3,13 +3,10 @@
stdenv,
fetchFromGitHub,
fetchurl,
qmake,
qt5,
copyDesktopItems,
wrapQtAppsHook,
makeDesktopItem,
qtbase,
qtscript,
protobuf,
protobuf_21,
libpcap,
wireshark,
gzip,
@ -17,35 +14,42 @@
gawk,
libnl,
}:
let
protobuf = protobuf_21;
stdenv.mkDerivation rec {
ostinatoIcon = fetchurl {
url = "https://ostinato.org/images/site-logo.png";
hash = "sha256-9cBngj8pNOTTWNdvZaND79aa14OnrqvXq0zjzQNJDXA=";
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "ostinato";
version = "1.3.0";
strictDeps = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "pstavirs";
repo = "ostinato";
rev = "v${version}";
sha256 = "sha256-/fPUxGeh5Cc3rb+1mR0chkiFPw5m+O6KtWDvzLn0iYo=";
};
ostinatoIcon = fetchurl {
url = "https://ostinato.org/images/site-logo.png";
sha256 = "f5c067823f2934e4d358d76f65a343efd69ad783a7aeabd7ab4ce3cd03490d70";
tag = "v${finalAttrs.version}";
hash = "sha256-/fPUxGeh5Cc3rb+1mR0chkiFPw5m+O6KtWDvzLn0iYo=";
};
buildInputs = [
qtbase
qt5.qtbase
protobuf
libpcap
qtscript
qt5.qtscript
libnl
];
nativeBuildInputs = [
copyDesktopItems
qmake
wrapQtAppsHook
qt5.qmake
qt5.wrapQtAppsHook
qt5.qtscript
protobuf
];
patches = [ ./drone_ini.patch ];
@ -92,4 +96,4 @@ stdenv.mkDerivation rec {
maintainers = with lib.maintainers; [ rick68 ];
platforms = with lib.platforms; linux ++ darwin ++ cygwin;
};
}
})

View file

@ -9171,10 +9171,6 @@ with pkgs;
ninja_1_11 = callPackage ../by-name/ni/ninja/package.nix { ninjaRelease = "1.11"; };
ostinato = libsForQt5.callPackage ../applications/networking/ostinato {
protobuf = protobuf_21;
};
pcmanfm-qt = lxqt.pcmanfm-qt;
pijuice = with python3Packages; toPythonApplication pijuice;