mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 15:54:32 +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.
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, autoreconfHook
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "udis86";
|
|
version = "unstable-2014-12-25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmt";
|
|
repo = "udis86";
|
|
rev = "56ff6c87c11de0ffa725b14339004820556e343d";
|
|
hash = "sha256-bmm1rgzZeStQJXEmcT8vnplsnmgN3LJlYs7COmqsDU8=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "support-python3-for-building";
|
|
url = "https://github.com/vmt/udis86/commit/3c05ce60372cb2eba39d6eb87ac05af8a664e1b1.patch";
|
|
hash = "sha256-uF4Cwt7UMkyd0RX6cCMQt9xvkkUNQvTDH/Z/6nHtVT8=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook python3 ];
|
|
|
|
configureFlags = [
|
|
"--enable-shared"
|
|
];
|
|
|
|
outputs = [ "bin" "out" "dev" "lib" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://udis86.sourceforge.net";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ timor ];
|
|
mainProgram = "udcli";
|
|
description = ''
|
|
Easy-to-use, minimalistic x86 disassembler library (libudis86)
|
|
'';
|
|
platforms = platforms.all;
|
|
};
|
|
}
|