mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-05-02 04:52:03 -04:00
Merge pull request #110 from naguiagahnim/main
Fix Nix impure evaluation problem and update README instructions
This commit is contained in:
@@ -82,10 +82,11 @@ npins add github Novattz creamlinux-installer --branch main
|
||||
```nix
|
||||
let
|
||||
sources = import ./npins;
|
||||
creamlinux = pkgs.callPackage sources.creamlinux-installer {};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ creamlinux ];
|
||||
environment.systemPackages = [
|
||||
(pkgs.callPackage "${sources.creamlinux-installer}/default.nix" {})
|
||||
];
|
||||
}
|
||||
```
|
||||
Those are the recommended methods to add creamlinux-installer to your environment. However, you could also add it as an input of your flake, like so:
|
||||
@@ -109,6 +110,7 @@ environment.systemPackages = [
|
||||
(pkgs.callPackage inputs.creamlinux-installer {})
|
||||
];
|
||||
```
|
||||
Similarly to running the AppImage, you will need to set `WEBKIT_DISABLE_DMABUF_RENDERER=1` if your GPU is from Nvidia in order to run the package.
|
||||
|
||||
### Building from Source
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
src = ./.;
|
||||
|
||||
patchSassEmbedded = pkgs.writeShellScriptBin "patch-sass-embedded" ''
|
||||
NIX_LD="${pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker"}"
|
||||
NIX_LD="$(cat ${pkgs.stdenv.cc}/nix-support/dynamic-linker)"
|
||||
for dart_bin in node_modules/sass-embedded-linux-*/dart-sass/src/dart; do
|
||||
if [ -f "$dart_bin" ]; then
|
||||
${pkgs.patchelf}/bin/patchelf --set-interpreter "$NIX_LD" "$dart_bin"
|
||||
|
||||
Reference in New Issue
Block a user