mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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.
38 lines
1005 B
Nix
38 lines
1005 B
Nix
{ lib, stdenv, fetchFromGitHub, pcsclite, pth, python2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hexio";
|
|
version = "1.0-RC1";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "08jxkdi0gjsi8s793f9kdlad0a58a0xpsaayrsnpn9bpmm5cgihq";
|
|
rev = "version-${version}";
|
|
owner = "vanrein";
|
|
repo = "hexio";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [ pcsclite pth python2 ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile \
|
|
--replace '-I/usr/local/include/PCSC/' '-I${lib.getDev pcsclite}/include/PCSC/' \
|
|
--replace '-L/usr/local/lib/pth' '-I${pth}/lib/'
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/lib $out/sbin $out/man
|
|
make DESTDIR=$out PREFIX=/ all
|
|
make DESTDIR=$out PREFIX=/ install
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Low-level I/O helpers for hexadecimal, tty/serial devices and so on";
|
|
homepage = "https://github.com/vanrein/hexio";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ leenaars ];
|
|
};
|
|
}
|