{ inputs = { nixpkgs.url = "nixpkgs/nixos-22.11"; yokutango = { url = "git+https://git.nani.wtf/h7x4/yokutango?ref=master"; flake = false; }; }; outputs = { self, nixpkgs, yokutango }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in { packages.${system} = { yokutango-json = pkgs.runCommandLocal "yokutango-json" {} '' ln -s ${yokutango}/json $out ''; yokutango2tex = pkgs.writers.writeHaskell "yokutango2tex" { libraries = with pkgs.haskellPackages; [ aeson bytestring ]; } (pkgs.lib.fileContents ./yokutango2tex.hs); yokutango-pdf = pkgs.runCommand "yokutango-pdf" {} '' ${self.packages.${system}.yokutango2tex} ${self.packages.${system}.yokutango-json} ''; }; }; }