From 3948928d1c57c3a6272f340c6d94572971b77f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 23 Aug 2024 20:28:30 -0700 Subject: [PATCH] bower2nix: init at 3.2.0-unstable-2024-06-25 --- pkgs/by-name/bo/bower2nix/package.nix | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/bo/bower2nix/package.nix diff --git a/pkgs/by-name/bo/bower2nix/package.nix b/pkgs/by-name/bo/bower2nix/package.nix new file mode 100644 index 000000000000..c0db35461b57 --- /dev/null +++ b/pkgs/by-name/bo/bower2nix/package.nix @@ -0,0 +1,44 @@ +{ + buildNpmPackage, + fetchFromGitHub, + git, + lib, + nix, + unstableGitUpdater, +}: + +buildNpmPackage rec { + pname = "bower2nix"; + version = "3.2.0-unstable-2024-06-25"; + + src = fetchFromGitHub { + owner = "rvl"; + repo = "bower2nix"; + rev = "b5da44f055c7561ed7a46226b3be0070e07d80e6"; + hash = "sha256-da+m2UWQ83tW1o0P1qvw35KpsXL/BDTeShg4KxL+7Ck="; + }; + + npmDepsHash = "sha256-TK1sqF2J/hQuP3bgGA4MolLA7LWWuYNnqf4gDyU154k="; + + npmBuildScript = "prepare"; + + makeWrapperArgs = [ + "--prefix PATH : ${ + lib.makeBinPath [ + git + nix + ] + }" + ]; + + passthru.updateScript = unstableGitUpdater { tagPrefix = "v"; }; + + meta = { + changelog = "https://github.com/rvl/bower2nix/releases/tag/v${version}"; + description = "Generate nix expressions to fetch bower dependencies"; + homepage = "https://github.com/rvl/bower2nix"; + license = lib.licenses.gpl3Only; + mainProgram = "bower2nix"; + maintainers = [ ]; + }; +}