nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 stdenv,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "nstool";
9 version = "1.9.2";
10
11 src = fetchFromGitHub {
12 owner = "jakcron";
13 repo = "nstool";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-az6AkBCO7Ew5jK/9qKQ65adwAKYf+H7QEvVI6LCXFS0=";
16 fetchSubmodules = true;
17 };
18
19 preBuild = ''
20 make deps
21 '';
22
23 installPhase = ''
24 mkdir -p $out/bin
25 cp -v bin/nstool $out/bin
26 '';
27
28 meta = {
29 description = "General purpose reading/extraction tool for Nintendo Switch file formats";
30 homepage = "https://github.com/jakcron/nstool";
31 license = lib.licenses.mit;
32 mainProgram = "nstool";
33 maintainers = with lib.maintainers; [ diadatp ];
34 platforms = lib.platforms.unix;
35 };
36})