Merge pull request #155433 from austinbutler/tailwindcss-update

This commit is contained in:
Sandro 2022-01-20 04:04:34 +01:00 committed by GitHub
commit 551492a934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3740 additions and 4332 deletions

View file

@ -2,8 +2,8 @@
let let
inherit (pkgs) lib; inherit (pkgs) lib;
since = (version: pkgs.lib.versionAtLeast nodejs.version version); since = version: pkgs.lib.versionAtLeast nodejs.version version;
before = (version: pkgs.lib.versionOlder nodejs.version version); before = version: pkgs.lib.versionOlder nodejs.version version;
super = import ./composition.nix { super = import ./composition.nix {
inherit pkgs nodejs; inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system; inherit (stdenv.hostPlatform) system;
@ -47,7 +47,7 @@ let
''; '';
}; };
carbon-now-cli = super.carbon-now-cli.override ({ carbon-now-cli = super.carbon-now-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
prePatch = '' prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
@ -56,13 +56,13 @@ let
wrapProgram $out/bin/carbon-now \ wrapProgram $out/bin/carbon-now \
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium --set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
''; '';
}); };
deltachat-desktop = super."deltachat-desktop-../../applications/networking/instant-messengers/deltachat-desktop".override { deltachat-desktop = super."deltachat-desktop-../../applications/networking/instant-messengers/deltachat-desktop".override {
meta.broken = true; # use the top-level package instead meta.broken = true; # use the top-level package instead
}; };
fast-cli = super.fast-cli.override ({ fast-cli = super.fast-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
prePatch = '' prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
@ -71,7 +71,7 @@ let
wrapProgram $out/bin/fast \ wrapProgram $out/bin/fast \
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium --set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
''; '';
}); };
hyperspace-cli = super."@hyperspace/cli".override { hyperspace-cli = super."@hyperspace/cli".override {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
@ -360,6 +360,19 @@ let
meta.broken = since "10"; meta.broken = since "10";
}; };
tailwindcss = super.tailwindcss.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/tailwind" \
--prefix NODE_PATH : ${self.postcss}/lib/node_modules
wrapProgram "$out/bin/tailwindcss" \
--prefix NODE_PATH : ${self.postcss}/lib/node_modules
'';
passthru.tests = {
simple-execution = pkgs.callPackage ./package-tests/tailwindcss.nix { inherit (self) tailwindcss; };
};
};
tedicross = super."tedicross-git+https://github.com/TediCross/TediCross.git#v0.8.7".override { tedicross = super."tedicross-git+https://github.com/TediCross/TediCross.git#v0.8.7".override {
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,15 @@
{ runCommand, tailwindcss }:
let
inherit (tailwindcss) packageName version;
in
runCommand "${packageName}-tests" { meta.timeout = 60; }
''
# Ensure CLI runs
${tailwindcss}/bin/tailwind --help > /dev/null
${tailwindcss}/bin/tailwindcss --help > /dev/null
# Needed for Nix to register the command as successful
touch $out
''