Commit graph

6 commits

Author SHA1 Message Date
Maximilian Nitsch
4a15b9362d flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7dca15289a1c2990efbe4680f0923ce14139b042?narHash=sha256-RoxIr/fbndtuKqulGvNCcuzC6KdAib85Q8gXnjzA1dw%3D' (2024-06-30)
  → 'github:NixOS/nixpkgs/53e81e790209e41f0c1efa9ff26ff2fd7ab35e27?narHash=sha256-1mEKHp4m9brvfQ0rjCca8P1WHpymK3TOr3v34ydv9bs%3D' (2024-07-14)
2024-07-17 11:17:39 +02:00
Maximilian Nitsch
5bf29c47ba flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/938aa157bbd6e3c6fd7dcb77998b1f92c2ad1631' (2024-06-18)
  → 'github:NixOS/nixpkgs/7dca15289a1c2990efbe4680f0923ce14139b042' (2024-06-30)

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2024-07-01 11:07:41 +02:00
Maximilian Nitsch
affa2ae18d flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9b5328b7f761a7bbdc0e332ac4cf076a3eedb89b' (2024-06-06)
  → 'github:NixOS/nixpkgs/938aa157bbd6e3c6fd7dcb77998b1f92c2ad1631' (2024-06-18)

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2024-07-01 11:04:04 +02:00
Maximilian Nitsch
7994639886 nix: Bump nixpkgs version to 24.05
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d65bceaee0fb1e64363f7871bc43dc1c6ecad99f' (2023-12-20)
  → 'github:NixOS/nixpkgs/9b5328b7f761a7bbdc0e332ac4cf076a3eedb89b' (2024-06-06)

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2024-07-01 11:04:04 +02:00
Maximilian Nitsch
d78480e714 nix: Update nixpkgs to version 23.11
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/04f431fe64a5ba8ff129cbbbfec489cfe903982c' (2023-10-24)
  → 'github:NixOS/nixpkgs/d65bceaee0fb1e64363f7871bc43dc1c6ecad99f' (2023-12-20)

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2023-12-22 11:22:31 +01:00
Maximilian Nitsch
41a1bc2322 flake.nix: Add basic nix support
Adds a flake.nix definition to enable building ud3tn and python tools on
NixOS as well as provide a reproducible development environment for
developers.

Unfortunately nix flake doesn't like git submodules by default, because
they add implicit dependencies which are not managed by nix. To work
around this issue submodule support needs to be enables by adding
`?submodules=1` to all nix commands.

Common commands are:

- Build & run ud3tn:
    `nix run '.?submodules=1'`
- Build individual packages:
    - `nix build '.?submodules=1#ud3tn'
    - `nix build '.?submodules=1#py3tn'
    - `nix build '.?submodules=1#python-ud3tn-utils'
- Load a development environment with all packages and dependencies:
    `nix develop '.?submodules=1'`

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2023-11-02 17:46:56 +01:00