2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchurl, rustPlatform, runCommand } :
|
2019-01-08 18:16:59 +00:00
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "pax-rs";
|
2019-01-08 18:16:59 +00:00
|
|
|
version = "0.4.0";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "The fastest JavaScript bundler in the galaxy";
|
2019-01-08 18:16:59 +00:00
|
|
|
longDescription = ''
|
|
|
|
The fastest JavaScript bundler in the galaxy. Fully supports ECMAScript module syntax (import/export) in addition to CommonJS require(<string>).
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nathan/pax";
|
2019-01-08 18:16:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.klntsky ];
|
2019-05-03 19:53:48 +00:00
|
|
|
platforms = platforms.linux;
|
2019-01-08 18:16:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src =
|
|
|
|
let
|
|
|
|
source = fetchFromGitHub {
|
|
|
|
owner = "nathan";
|
|
|
|
repo = "pax";
|
|
|
|
rev = "pax-v${version}";
|
|
|
|
sha256 = "1l2xpgsms0bfc0i3l0hyw4dbp6d4qdxa9vxyp704p27vvn4ndhv2";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargo-lock = fetchurl {
|
2019-05-01 13:22:25 +00:00
|
|
|
url = "https://gist.github.com/klntsky/c7863424d7df0c379782015f6bb3b399/raw/1cf7481e33984fd1510dc77ed677606d08fa8eb6/Cargo.lock";
|
2019-01-08 18:16:59 +00:00
|
|
|
sha256 = "0ff1b64b99cbca1cc2ceabcd2e4f7bc3411e3a2a9fbb9db2204d9240fe38ddeb";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
runCommand "pax-rs-src" {} ''
|
|
|
|
cp -R ${source} $out
|
|
|
|
chmod +w $out
|
|
|
|
cp ${cargo-lock} $out/Cargo.lock
|
|
|
|
'';
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "0d6g52hjflnw2zvlx10pz78527vh7mw5n43yi8q6dwr3pkbds1fs";
|
2019-01-08 18:16:59 +00:00
|
|
|
}
|