nixpkgs/pkgs/by-name/si/sigrok-firmware-fx2lafw/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

38 lines
972 B
Nix

{ lib
, stdenv
, fetchgit
, autoreconfHook
, sdcc
}:
stdenv.mkDerivation rec {
pname = "sigrok-firmware-fx2lafw";
version = "0.1.7-unstable-2024-02-03";
src = fetchgit {
url = "git://sigrok.org/sigrok-firmware-fx2lafw";
rev = "0f2d3242ffb5582e5b9a018ed9ae9812d517a56e";
hash = "sha256-xveVcwAwtqKGD3/UvnBz5ASvTyg/6jAlTedZElhV2HE=";
};
enableParallelBuilding = true;
nativeBuildInputs = [ autoreconfHook sdcc ];
meta = with lib; {
description = "Firmware for FX2 logic analyzers";
homepage = "https://sigrok.org/";
# licensing details explained in:
# https://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=blob;f=README;hb=HEAD#l122
license = with licenses; [
gpl2Plus # overall
lgpl21Plus # fx2lib, Hantek 6022BE, Sainsmart DDS120 firmwares
];
sourceProvenance = with sourceTypes; [ fromSource ];
platforms = platforms.all;
maintainers = with maintainers; [ panicgh vifino ];
};
}