mirror of
https://gitlab.fabcity.hamburg/software/fab-city-software-kit.git
synced 2024-09-20 04:18:51 +02:00
fixed flake
This commit is contained in:
parent
f0919192be
commit
c3654e5cbf
5
.envrc
5
.envrc
|
@ -1,11 +1,6 @@
|
||||||
watch_file **/*.nix
|
watch_file **/*.nix
|
||||||
watch_file flake.lock
|
watch_file flake.lock
|
||||||
|
|
||||||
use_flake() {
|
|
||||||
mkdir -p "$(direnv_layout_dir)"
|
|
||||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nix help flake &> /dev/null)
|
if (nix help flake &> /dev/null)
|
||||||
then
|
then
|
||||||
use flake
|
use flake
|
||||||
|
|
34
flake.lock
34
flake.lock
|
@ -16,6 +16,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1656928814,
|
||||||
|
"narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657425264,
|
"lastModified": 1657425264,
|
||||||
|
@ -35,23 +50,8 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"nixpkgs": "nixpkgs",
|
"flake-utils": "flake-utils",
|
||||||
"utils": "utils"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
|
||||||
},
|
|
||||||
"utils": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1656928814,
|
|
||||||
"narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
20
flake.nix
20
flake.nix
|
@ -1,22 +1,18 @@
|
||||||
{
|
{
|
||||||
description = "SRX frugal bioreactor";
|
description = "SRX frugal bioreactor";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable-small"; };
|
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-unstable-small"; };
|
||||||
|
|
||||||
flake-compat = {
|
flake-compat = {
|
||||||
url = "github:edolstra/flake-compat";
|
url = "github:edolstra/flake-compat";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
utils.url = "github:numtide/flake-utils";
|
|
||||||
};
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
||||||
outputs = { self, nixpkgs, utils, ... }@inputs:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
utils.lib.eachDefaultSystem (system:
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||||
let pkgs = nixpkgs.legacyPackages.${system};
|
{
|
||||||
in {
|
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||||
devShells.default = import ./shell.nix {
|
}
|
||||||
inherit pkgs; };
|
);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,7 @@ with pkgs;
|
||||||
|
|
||||||
mkShell {
|
mkShell {
|
||||||
name = "fcos.integration";
|
name = "fcos.integration";
|
||||||
# nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
nativeBuildInputs = [
|
|
||||||
chart-testing
|
|
||||||
dotenv-linter
|
|
||||||
editorconfig-checker
|
editorconfig-checker
|
||||||
git
|
git
|
||||||
hadolint
|
hadolint
|
||||||
|
|
Loading…
Reference in a new issue