about summary refs log tree commit diff
path: root/pkgs/by-name/sp/spoof/package.nix
blob: e7586483d2d494d586a004791887f3685e3fd408 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "spoof";
  version = "2.0.4";

  src = fetchFromGitHub {
    owner = "feross";
    repo = "spoof";
    rev = "v${version}";
    hash = "sha256-oysURKLQ/rbGAvsy3K0OmDRHUqRKa8S8l5ihBjNqYXc=";
  };

  npmDepsHash = "sha256-jf0tcsftXoYy6K3PcXgSU+3PAb6Ux9BsVpOX79TI4/o=";

  postPatch = ''
    cp ${./package-lock.json} package-lock.json
  '';

  npmFlags = [ "--ignore-scripts" ];

  dontNpmBuild = true;

  meta = {
    description = "Easily spoof your MAC address in OS X & Linux";
    homepage = "https://github.com/feross/spoof";
    license = lib.licenses.mit;
    mainProgram = "spoof";
    maintainers = with lib.maintainers; [ modderme123 ];
  };
}