Unverified Commit cd94a35e authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

bower2nix: init at 3.2.0-unstable-2024-06-25 (#336932)

parents c1d784a8 46bb7c84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

The end result of running Bower is a `bower_components` directory which can be included in the web app's build process.

Bower can be run interactively, by installing `nodePackages.bower`. More interestingly, the Bower components can be declared in a Nix derivation, with the help of `nodePackages.bower2nix`.
Bower can be run interactively, by installing `nodePackages.bower`. More interestingly, the Bower components can be declared in a Nix derivation, with the help of `bower2nix`.

## bower2nix usage {#ssec-bower2nix-usage}

+44 −0
Original line number Diff line number Diff line
{
  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 = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ mapAliases {
  inherit (pkgs) bash-language-server; # added 2024-06-07
  bibtex-tidy = pkgs.bibtex-tidy; # added 2023-07-30
  bitwarden-cli = pkgs.bitwarden-cli; # added 2023-07-25
  inherit (pkgs) bower2nix; # added 2024-08-23
  inherit (pkgs) btc-rpc-explorer; # added 2023-08-17
  inherit (pkgs) carbon-now-cli; # added 2023-08-17
  inherit (pkgs) carto; # added 2023-08-17
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@
, "aws-cdk"
, "awesome-lint"
, "bower"
, "bower2nix"
, "browserify"
, "browser-sync"
, "cdk8s-cli"
+0 −134
Original line number Diff line number Diff line
@@ -59113,140 +59113,6 @@ in
    bypassCache = true;
    reconstructLock = true;
  };
  bower2nix = nodeEnv.buildNodePackage {
    name = "bower2nix";
    packageName = "bower2nix";
    version = "3.2.0";
    src = fetchurl {
      url = "https://registry.npmjs.org/bower2nix/-/bower2nix-3.2.0.tgz";
      sha512 = "oNHyIWiU5OpUoDCSSRCZQ6JkXyBgtyi+odbv+XSmO6/KCn3B4SRT3/d+QKNj5UQ8KRsrBAI0Ry7CG2OtqrFE1A==";
    };
    dependencies = [
      sources."argparse-1.0.4"
      sources."array-find-index-1.0.2"
      sources."balanced-match-1.0.2"
      sources."bower-1.8.14"
      sources."bower-endpoint-parser-0.2.1"
      sources."bower-json-0.6.0"
      sources."bower-logger-0.2.1"
      sources."brace-expansion-1.1.11"
      sources."camelcase-2.1.1"
      sources."camelcase-keys-2.1.0"
      sources."concat-map-0.0.1"
      sources."currently-unhandled-0.4.1"
      sources."debug-2.6.9"
      sources."decamelize-1.2.0"
      sources."deep-extend-0.4.2"
      sources."ends-with-0.2.0"
      sources."error-ex-1.3.2"
      sources."ext-list-2.2.2"
      sources."ext-name-3.0.0"
      sources."find-up-1.1.2"
      (sources."fs-extra-0.26.7" // {
        dependencies = [
          sources."graceful-fs-4.2.11"
        ];
      })
      sources."fs.realpath-1.0.0"
      sources."function-bind-1.1.2"
      sources."get-stdin-4.0.1"
      sources."glob-6.0.4"
      sources."graceful-fs-3.0.12"
      sources."hasown-2.0.2"
      sources."hosted-git-info-2.8.9"
      sources."indent-string-2.1.0"
      sources."inflight-1.0.6"
      sources."inherits-2.0.4"
      sources."intersect-1.0.1"
      sources."is-arrayish-0.2.1"
      sources."is-core-module-2.15.1"
      sources."is-finite-1.1.0"
      sources."is-plain-obj-1.1.0"
      sources."is-utf8-0.2.1"
      (sources."jsonfile-2.4.0" // {
        dependencies = [
          sources."graceful-fs-4.2.11"
        ];
      })
      (sources."klaw-1.3.1" // {
        dependencies = [
          sources."graceful-fs-4.2.11"
        ];
      })
      (sources."load-json-file-1.1.0" // {
        dependencies = [
          sources."graceful-fs-4.2.11"
        ];
      })
      sources."lodash-4.2.1"
      sources."loud-rejection-1.6.0"
      sources."map-obj-1.0.1"
      sources."meow-3.7.0"
      sources."mime-db-1.53.0"
      sources."minimatch-3.1.2"
      sources."minimist-1.2.8"
      sources."mkdirp-0.5.6"
      sources."ms-2.0.0"
      sources."natives-1.1.6"
      sources."normalize-package-data-2.5.0"
      sources."object-assign-4.1.1"
      sources."once-1.4.0"
      sources."os-tmpdir-1.0.2"
      sources."parse-json-2.2.0"
      sources."path-exists-2.1.0"
      sources."path-is-absolute-1.0.1"
      sources."path-parse-1.0.7"
      (sources."path-type-1.1.0" // {
        dependencies = [
          sources."graceful-fs-4.2.11"
        ];
      })
      sources."pify-2.3.0"
      sources."pinkie-2.0.4"
      sources."pinkie-promise-2.0.1"
      sources."promised-temp-0.1.0"
      sources."q-1.5.1"
      sources."read-pkg-1.1.0"
      sources."read-pkg-up-1.0.1"
      sources."redent-1.0.0"
      sources."repeating-2.0.1"
      sources."resolve-1.22.8"
      (sources."rimraf-2.7.1" // {
        dependencies = [
          sources."glob-7.2.3"
        ];
      })
      sources."semver-5.7.2"
      sources."signal-exit-3.0.7"
      sources."sort-keys-1.1.2"
      sources."sort-keys-length-1.0.1"
      sources."spdx-correct-3.2.0"
      sources."spdx-exceptions-2.5.0"
      sources."spdx-expression-parse-3.0.1"
      sources."spdx-license-ids-3.0.20"
      sources."sprintf-js-1.0.3"
      sources."strip-bom-2.0.0"
      sources."strip-indent-1.0.1"
      sources."supports-preserve-symlinks-flag-1.0.0"
      (sources."temp-0.8.3" // {
        dependencies = [
          sources."rimraf-2.2.8"
        ];
      })
      sources."trim-newlines-1.0.0"
      sources."validate-npm-package-license-3.0.4"
      sources."wrappy-1.0.2"
    ];
    buildInputs = globalBuildInputs;
    meta = {
      description = "Generate nix expressions to fetch bower dependencies";
      homepage = "https://github.com/rvl/bower2nix";
      license = "GPL-3.0";
    };
    production = true;
    bypassCache = true;
    reconstructLock = true;
  };
  browserify = nodeEnv.buildNodePackage {
    name = "browserify";
    packageName = "browserify";
Loading