2022-09-02 02:45:28 -07:00
|
|
|
{
|
|
|
|
description = "Fork of vimwiki-cli so I can bump the deps lol";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
my-python = pkgs.python3;
|
|
|
|
python-with-my-packages = my-python.withPackages (p: with p; [
|
|
|
|
click
|
|
|
|
]);
|
|
|
|
python-deps = with pkgs.python3Packages; [
|
|
|
|
click
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
2022-09-06 00:10:33 -07:00
|
|
|
packages.x86_64-linux.vimwiki-cli = pkgs.python3Packages.buildPythonPackage rec {
|
2022-09-02 02:45:28 -07:00
|
|
|
pname = "vimwiki-cli";
|
2022-09-06 00:10:33 -07:00
|
|
|
version = "1.0.2";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "sstallion";
|
|
|
|
repo = "vimwiki-cli";
|
|
|
|
rev = "v${version}";
|
2022-09-06 00:13:29 -07:00
|
|
|
sha256 = "4XvI5XCSXisuVGG5HZTiuFIw3phUmqr2m/jtmerM8WE=";
|
2022-09-06 00:10:33 -07:00
|
|
|
};
|
|
|
|
bulidInputs = [ python-deps ];
|
2022-09-02 02:45:28 -07:00
|
|
|
propagatedBuildInputs = [ python-deps ];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
2022-09-02 02:57:31 -07:00
|
|
|
packages.x86_64-linux.defaultPackage.x86_64-linux = self.packages.x86_64-linux.vimwiki-cli;
|
2022-09-02 02:45:28 -07:00
|
|
|
devShell.x86_64-linux = pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
python-with-my-packages
|
|
|
|
self.packages.x86_64-linux.vimwiki-cli
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|