571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
854 B
Nix
35 lines
854 B
Nix
{ lib
|
|
, writeText
|
|
, flutter
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
flutter.buildFlutterApplication rec {
|
|
pname = "firmware-updater";
|
|
version = "0-unstable-2024-10-03";
|
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
|
|
sourceRoot = "./source/packages/firmware_updater";
|
|
|
|
gitHashes = {
|
|
fwupd = "sha256-l/+HrrJk1mE2Mrau+NmoQ7bu9qhHU6wX68+m++9Hjd4=";
|
|
};
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "canonical";
|
|
repo = "firmware-updater";
|
|
rev = "ce300838d95c5955423eedcac8b05589b14a8c52";
|
|
hash = "sha256-o3OU43pEzo8FC5e6kknB8BV9n7U4RMqg/+CDbHraAKw=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Firmware Updater for Linux";
|
|
mainProgram = "firmware-updater";
|
|
homepage = "https://github.com/canonical/firmware-updater";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|