summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.builds/nixos.yml8
-rw-r--r--default.nix32
-rw-r--r--doc/src/09010-contributing.md2
-rw-r--r--shell.nix (renamed from ci.nix)0
4 files changed, 5 insertions, 37 deletions
diff --git a/.builds/nixos.yml b/.builds/nixos.yml
index eef09fab..5fee7051 100644
--- a/.builds/nixos.yml
+++ b/.builds/nixos.yml
@@ -12,19 +12,19 @@ tasks:
bash ./scripts/version-updated
- install: |
cd imag
- nix-shell ./ci.nix --run "echo nix-shell ready"
+ nix-shell ./shell.nix --run "echo nix-shell ready"
- userdoc: |
cd imag
- nix-shell ./ci.nix --run "cargo install mdbook --force"
+ nix-shell ./shell.nix --run "cargo install mdbook --force"
cd doc/user
~/.cargo/bin/mdbook build
- build: |
cd imag
- nix-shell ./ci.nix --run "cargo build --all --all-features"
+ nix-shell ./shell.nix --run "cargo build --all --all-features"
- prepare-test: |
git config --global user.name "Test user"
git config --global user.email "test@user.tld"
- test: |
cd imag
- nix-shell ./ci.nix --run "cargo test --all --all-features"
+ nix-shell ./shell.nix --run "cargo test --all --all-features"
diff --git a/default.nix b/default.nix
deleted file mode 100644
index d038df2a..00000000
--- a/default.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{ pkgs ? (import <nixpkgs> {}) }:
-
-let
- env = with pkgs.rustChannels.stable; [
- rust
- cargo
- ];
-
- dependencies = with pkgs; [
- cmake
- curl
- gcc
- libpsl
- openssl
- pkgconfig
- which
- zlib
- dbus
- libtool
- ];
-in
-
-pkgs.stdenv.mkDerivation rec {
- name = "imag";
- src = /var/empty;
- version = "0.0.0";
-
- buildInputs = env ++ dependencies;
-
- LIBCLANG_PATH="${pkgs.llvmPackages.libclang}/lib";
-}
-
diff --git a/doc/src/09010-contributing.md b/doc/src/09010-contributing.md
index 81dce995..2a2cd082 100644
--- a/doc/src/09010-contributing.md
+++ b/doc/src/09010-contributing.md
@@ -25,7 +25,7 @@ The prerequisites are simple: `cargo` and `rustc` in current version (stable)
or newer (we do not use nighly features though).
Build dependencies for building are listed in the
-[default.nix file](http://git.imag-pim.org/imag/tree/default.nix),
+[shell.nix file](http://git.imag-pim.org/imag/tree/shell.nix),
though you do not have to have the `nix` package manager installed to build
imag.
Everything else will be done by `cargo`.
diff --git a/ci.nix b/shell.nix
index 29e0064d..29e0064d 100644
--- a/ci.nix
+++ b/shell.nix