mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +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.
37 lines
958 B
Nix
37 lines
958 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hactool";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SciresM";
|
|
repo = "hactool";
|
|
rev = version;
|
|
sha256 = "0305ngsnwm8npzgyhyifasi4l802xnfz19r0kbzzniirmcn4082d";
|
|
};
|
|
|
|
patches = [ ./musl-compat.patch ];
|
|
|
|
preBuild = ''
|
|
mv config.mk.template config.mk
|
|
'';
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
install -D hactool $out/bin/hactool
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/SciresM/hactool";
|
|
description = "Tool to manipulate common file formats for the Nintendo Switch";
|
|
longDescription = "A tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives";
|
|
license = licenses.isc;
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "hactool";
|
|
};
|
|
}
|