Skip to content

Commit

Permalink
feat: Replace nix-visualize with upstream
Browse files Browse the repository at this point in the history
The changes from Henri's fork were merged upstream.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
  • Loading branch information
brianmcgee committed Nov 9, 2023
1 parent 37192ac commit 325d359
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 18 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
treefmt-nix.follows = "treefmt-nix";
};
};
nix-visualize = {
url = "github:craigmbooth/nix-visualize";
flake = false;
};
};

outputs = inputs @ {flake-parts, ...}:
Expand Down
2 changes: 2 additions & 0 deletions nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
}: {
checks =
{
# checks that copyright headers are compliant
# todo this could be moved into a shared flake
reuse =
pkgs.runCommandLocal "reuse-lint" {
buildInputs = [pkgs.reuse];
Expand Down
3 changes: 2 additions & 1 deletion nix/treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
alejandra.enable = true; # nix formatter https://github.com/kamadorueda/alejandra
deadnix.enable = true; # removes dead nix code https://github.com/astro/deadnix
statix.enable = true; # prevents use of nix anti-patterns https://github.com/nerdypepper/statix
shellcheck.enable = true;
shellcheck.enable = true; # lints shell scripts https://github.com/koalaman/shellcheck
};
};

# configures treefmt as the program to use when invoke `nix fmt`
formatter = config.treefmt.build.wrapper;
};
}
19 changes: 2 additions & 17 deletions scripts/nixupdate/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
{
{ inputs, ... }: {
perSystem = {
pkgs,
self',
Expand All @@ -10,23 +10,8 @@
pythonPackages = pkgs.python3Packages;
in {
packages = {
nix_visualize = pythonPackages.buildPythonPackage rec {
version = "1.0.5";
pname = "nix-visualize";

src = pkgs.fetchFromGitHub {
owner = "henrirosten";
repo = pname;
rev = "7fedf92eacffd5c42c50f7fec72f61a377c9ccf3";
hash = "sha256-Z1r8XHszoUnQinl63yXvQG6Czp5HnYNG37AY+EEiT4w=";
};
propagatedBuildInputs = with pythonPackages; [
matplotlib
networkx
pygraphviz
pandas
];
};
nix_visualize = (import "${inputs.nix-visualize}/default.nix") { inherit pkgs; };

nixupdate = let
inherit
Expand Down

0 comments on commit 325d359

Please sign in to comment.