39 lines
780 B
Nix
39 lines
780 B
Nix
|
{
|
||
|
description = "Beancount Importer";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs }:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||
|
in
|
||
|
{
|
||
|
|
||
|
packages.x86_64-linux.muneem = pkgs.stdenv.mkDerivation {
|
||
|
name = "muneem";
|
||
|
src = ./.;
|
||
|
installPhase = ''
|
||
|
mkdir -p $out
|
||
|
cp -r src/ $out/
|
||
|
cp bb.edn $out/
|
||
|
cp deps.edn $out/
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
defaultPackage.x86_64-linux = self.packages.x86_64-linux.muneem;
|
||
|
devShell.x86_64-linux = pkgs.mkShell {
|
||
|
buildInputs = with pkgs; [
|
||
|
jdk11
|
||
|
babashka
|
||
|
geckodriver
|
||
|
chromedriver
|
||
|
chromium
|
||
|
];
|
||
|
shellHook = ''
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|