+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanUpdate9687527

main
756 B24 linesraw
1{ pkgs, python3, fetchPypi }:
2
3python3.pkgs.buildPythonApplication rec {
4  pname = "fio-plot";
5  version = "1.1.7";
6  format = "setuptools";
7  src = fetchPypi {
8    inherit pname version;
9    hash  = "sha256-5IVWjpK+gZfQSvJMFD1PFaEfKaXy9lcyzOnfm0UwFbA=";
10  };
11  nativeBuildInputs = with pkgs; [ fio ];
12  propagatedBuildInputs = with python3.pkgs; [
13    numpy matplotlib pillow pyparsing
14  ];
15  # pyan3 is only used for internal documentation
16  # I'm not sure why the "scripts" part breaks things but removing it seems to work
17  postPatch = ''
18      substituteInPlace ./setup.py --replace "'pyan3', " ""
19      substituteInPlace ./setup.py --replace \
20        "scripts=['bin/fio-plot', 'bin/bench-fio']," ""
21    '';
22
23  meta.platforms = [ "x86_64-linux" ];
24}