Merge pull request #618 from efx/fix-616
use nix-shell to build on nixos
This commit is contained in:
commit
0afd973823
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -19,3 +19,6 @@ snap/.snapcraft
|
||||||
parts
|
parts
|
||||||
prime
|
prime
|
||||||
stage
|
stage
|
||||||
|
|
||||||
|
# nixos dependencies snippet
|
||||||
|
shell.nix
|
||||||
|
|
|
@ -49,6 +49,19 @@ To build it from source, you will need to have Git, [Rust (at least 1.30) and Ca
|
||||||
installed. You will also need additional dependencies to compile [libsass](https://github.com/sass/libsass):
|
installed. You will also need additional dependencies to compile [libsass](https://github.com/sass/libsass):
|
||||||
|
|
||||||
- OSX, Linux and other Unix: `make` (`gmake` on BSDs), `g++`, `libssl-dev`
|
- OSX, Linux and other Unix: `make` (`gmake` on BSDs), `g++`, `libssl-dev`
|
||||||
|
- NixOS: Create a `shell.nix` file in the root of the cloned project with the following contents:
|
||||||
|
```nix
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = [
|
||||||
|
libsass
|
||||||
|
openssl
|
||||||
|
pkgconfig
|
||||||
|
];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
- Then invoke `nix-shell`. This opens a shell with the above dependencies. You then run `cargo build --release` to build the project.
|
||||||
- Windows (a bit trickier): updated `MSVC` and overall updated VS installation
|
- Windows (a bit trickier): updated `MSVC` and overall updated VS installation
|
||||||
|
|
||||||
From a terminal, you can now run the following command:
|
From a terminal, you can now run the following command:
|
||||||
|
|
Loading…
Reference in a new issue