Skip to content

Commit

Permalink
Merge pull request #15 from tomodachi94/import-packages
Browse files Browse the repository at this point in the history
Import packages
  • Loading branch information
tomodachi94 authored Apr 20, 2024
2 parents e188c9e + 0e4acd8 commit 824c25c
Show file tree
Hide file tree
Showing 10 changed files with 23,962 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
package-lock.json
!pkgs/all/awesome-lint/package-lock.json
.netrwhist

*-creds.vim
Expand Down
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@
];
};

packages = import ./pkgs { inherit pkgs; };
legacyPackages = packages // { lib = tomolib; };
packages = tomolib.forAllSystems (pkgs:
import ./pkgs { inherit pkgs; }
);
/* legacyPackages = tomolib.forAllSystems (system: (packages.${system} // { lib = tomolib; })); */

devShells = tomolib.forAllSystems (pkgs: import ./lib/shells.nix { inherit pkgs home-manager; });
};
Expand Down
36 changes: 36 additions & 0 deletions pkgs/all/awesome-lint/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, fetchFromGitHub
, buildNpmPackage
}:

buildNpmPackage rec {
pname = "awesome-lint";
version = "1.1.0";

src = fetchFromGitHub {
owner = "sindresorhus";
repo = "awesome-lint";
rev = "v${version}";
hash = "sha256-yiH2HiW3MQEYkwC5D09Vs43pdUiKl2D3lIhlOdZ6fMY=";
};

dontNpmBuild = true;

dontNpmPrune = true;

npmDepsHash = "sha256-/Nhb1GwHl61H6T7wKjgG/dINpneHXOt8hzzw+7C0i3o=";

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

meta = with lib; {
description = "Linter for Awesome lists";
homepage = "https://github.com/sindresorhus/awesome-lint";
license = licenses.mit;
maintainers = with maintainers; [ tomodachi94 ];
mainProgram = "awesome-lint";
platforms = platforms.all;
broken = true;
};
}
Loading

0 comments on commit 824c25c

Please sign in to comment.