diff --git a/flake.lock b/flake.lock index 5109530..2e45e64 100644 --- a/flake.lock +++ b/flake.lock @@ -34,10 +34,27 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1679262748, + "narHash": "sha256-DQCrrAFrkxijC6haUzOC5ZoFqpcv/tg2WxnyW3np1Cc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "60c1d71f2ba4c80178ec84523c2ca0801522e0a6", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "typst-pkg": "typst-pkg" } }, "systems": { @@ -54,6 +71,24 @@ "repo": "default", "type": "github" } + }, + "typst-pkg": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1681903615, + "narHash": "sha256-0Q/109Fe540hkbkaKmKNeDr5ZcZJrfoUv/XlqJME0i0=", + "owner": "typst", + "repo": "typst", + "rev": "dc3017955a67e5509f6bc33cb9b4833806da4c22", + "type": "github" + }, + "original": { + "owner": "typst", + "repo": "typst", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index cbcf41a..073a624 100644 --- a/flake.nix +++ b/flake.nix @@ -1,11 +1,12 @@ { - description = "Good basic flake template"; + description = "Basic flake with typst as input"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; + typst-pkg.url = "github:typst/typst"; }; - outputs = { self, nixpkgs, flake-utils }: + outputs = { self, nixpkgs, flake-utils, typst-pkg }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system};