| 5 May 2024 |
Tumble | its just i couldnt figure out what Flags to pass to makeWrapper, added to executable calling the generated .js with node as an interpreter. These scripts are defined in package.json meant | 17:22:56 |
| 6 May 2024 |
purepani | In reply to @purepani:matrix.org how does that bug not make yarn-berry effectively useless to anyone So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ). Specifically, they say Note that running [yarn install] is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored.
| 02:18:01 |
purepani | In reply to @purepani:matrix.org how does that bug not make yarn-berry effectively useless to anyone * So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ). Specifically, they say Note that running [yarn install] is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored.
| 02:18:20 |
purepani | * So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ). Specifically, they say Note that running [yarn install] is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored.
| 02:18:26 |
purepani | * So, apparently this is at least somewhat intended, or at least intentionally not guaranteed: https://yarnpkg.com/cli/install.
First the package manager will resolve your dependencies. The exact way a dependency version is privileged over another isn't standardized outside of the regular semver guarantees. If a package doesn't resolve to what you would expect, check that all dependencies are correctly declared (also check our website for more information: ).
Specifically, they say
Note that running [yarn install] is not part of the recommended workflow. Yarn supports zero-installs, which means that as long as you store your cache and your .pnp.cjs file inside your repository, everything will work without requiring any install right after cloning your repository or switching branches.
The issue is that if the repos don't use zero-install, either by choice, or just because they don't realize that it's a thing, there's no way to get any type of reproducibility since the integrety hashes aren't stored.
| 02:18:32 |
| dayvidpham joined the room. | 05:39:41 |
| 7 May 2024 |
dayvidpham | Hello, just wondering what the process is for building my project locally from my Flake output.
I think the problem is how Flakes handle files in .gitignore? I have a dist/ folder that is generated via Webpack/Babel at build-time, and it is currently gitignore'd. Things work fine if I take it out of the .gitignore file and run git add dist/.
When I don't do that, the build fails with message: error: getting status of '/nix/store/miap1bv0r73waw5g52ln2gnqjq8848yl-source/dist': No such file or directory
I try to build the package using npmBuildPackage, which runs the npm run build script by default in the buildPhase. This is fine and it should use webpack/babel to produce a dist/ directory.
I don't define any custom buildPhase, but I do define a custom installPhase which is simply:
installPhase = ''
runHook preInstall
cp -r ./dist $out/dist
runHook postInstall
'';
Any ideas on how to get this to work? | 08:05:28 |
dayvidpham | * Hello, just wondering what the process is for building my project locally from my Flake output.
I think the problem is how Flakes handle files in .gitignore? I have a dist/ folder that is generated via Webpack/Babel at build-time, and it is currently gitignore'd. Things work fine if I take it out of the .gitignore file and run
$ git add dist/
$ nix build
When I don't do that, the build fails with message: error: getting status of '/nix/store/miap1bv0r73waw5g52ln2gnqjq8848yl-source/dist': No such file or directory
I try to build the package using npmBuildPackage, which runs the npm run build script by default in the buildPhase. This is fine and it should use webpack/babel to produce a dist/ directory.
I don't define any custom buildPhase, but I do define a custom installPhase which is simply:
installPhase = ''
runHook preInstall
cp -r ./dist $out/dist
runHook postInstall
'';
Any ideas on how to get this to work? | 08:06:12 |
dayvidpham | * Hello, just wondering what the process is for building my project locally from my Flake output.
I think the problem is how Flakes handle files in .gitignore? I have a dist/ folder that is generated via Webpack/Babel at build-time, and it is currently gitignore'd. Things work fine if I take it out of the .gitignore file and run
$ git add dist/
$ nix build
When I don't do that, the build fails with message: error: getting status of '/nix/store/miap1bv0r73waw5g52ln2gnqjq8848yl-source/dist': No such file or directory
I try to build the package using npmBuildPackage, which runs the npm run build script by default in the buildPhase. This is fine and it should use webpack/babel to produce a dist/ directory.
I don't define any custom buildPhase, but I do define a custom installPhase which is simply:
installPhase = ''
runHook preInstall
mkdir -p $out/
cp -r ./dist $out/dist
runHook postInstall
'';
Any ideas on how to get this to work? | 08:08:30 |
Cobalt | You shouldn't have to check in `dist` into git. Are you sure you're build phase is working? Maybe try debugging in your installPhase with ```
ls -lah
exit 2
```
Alternatively, step through the derivation with `nix develop`> | 08:28:35 |
Cobalt | * You shouldn't have to check in `dist` into git. Are you sure you're build phase is working? Maybe try debugging in your installPhase with
```
ls -lah
exit 2
```
Alternatively, step through the derivation with `nix develop` | 08:28:43 |
dayvidpham | Ah, wow thanks. This made me realise that it was indeed not Nix that was the problem-- somebody defined the dist/ folder as a dev dependency in the package.json file 😅 | 10:00:14 |
dayvidpham | So then in the build step, Nix would look for it and wouldn't be able to find it 💀 | 10:00:46 |
| @gilligan:matrix.org rejected invite. | 18:01:34 |
| 9 May 2024 |
| @julia:the-apothecary.club changed their profile picture. | 05:40:02 |
| 10 May 2024 |
| Winter changed their display name from Winter to Winter (test). | 13:33:56 |
| Winter changed their display name from Winter (test) to Winter. | 13:34:21 |
| 20 May 2024 |
| Kamilla 'ova joined the room. | 23:23:17 |
| 21 May 2024 |
Tumble | ok so if i have a nodejs project built to an exe
and i have a nixos config flake pull it in as a flake input
and the nixos config creates a systemd service running it
and i have the systemd have ${packgeVariable}/bin/name in the exec thing
and i tell systemd to have enviroment variable set for that service
will it get them and the prohect can use them in procress.env
or will there need to be some equivalent to --pure or something | 14:32:35 |
Lily Foster | In reply to @tumble1999:matrix.org ok so if i have a nodejs project built to an exe
and i have a nixos config flake pull it in as a flake input
and the nixos config creates a systemd service running it
and i have the systemd have ${packgeVariable}/bin/name in the exec thing
and i tell systemd to have enviroment variable set for that service
will it get them and the prohect can use them in procress.env
or will there need to be some equivalent to --pure or something if systemd sets env vars, then when running that exe, the exe can access them in process.env, yes | 14:56:38 |
Lily Foster | but also i guess try it and see. it sounds like you've got all of the pieces already | 14:56:54 |
Tumble | the one peice i dont have is automation
system auto upgrade propably wont do good up updating a webiste for if say
someone commits a mardown file for a blog post and have to wait a day for it to go live | 14:58:03 |
| 22 May 2024 |
| NixOS Moderation Botchanged room power levels. | 15:25:55 |
| NixOS Moderation Botchanged room power levels. | 15:28:10 |
@drupol:matrix.org | I'm trying to package Fider, but I have an issue with the Node Frontend trying to download Playwright. I uploaded my work in progress at https://github.com/NixOS/nixpkgs/pull/313713
Feel free to have a look and comment | 15:56:12 |
@drupol:matrix.org | I fixed the issue with playwright and esbuild! :) | 16:10:00 |
@drupol:matrix.org | Now working on the next issue... | 16:10:05 |
@drupol:matrix.org | > godotenv -f .env ./fider
> /nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash: line 1: godotenv: command not found
| 16:10:19 |
| 26 May 2024 |
| avocadoom left the room. | 10:52:39 |
| 29 May 2024 |
| raitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 7248). | 17:07:38 |