diff --git a/.packcheck.ignore b/.packcheck.ignore index db93d0e..bf0b4bb 100644 --- a/.packcheck.ignore +++ b/.packcheck.ignore @@ -3,3 +3,5 @@ stack.yaml .github/workflows/packcheck.yml .packcheck.ignore appveyor.yml +flake.lock +flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d0a450a --- /dev/null +++ b/flake.lock @@ -0,0 +1,88 @@ +{ + "nodes": { + "basepkgs": { + "inputs": { + "basepkgs": "basepkgs_2", + "nixpkgs": "nixpkgs", + "nixpkgs-darwin": "nixpkgs-darwin" + }, + "locked": { + "lastModified": 1776359956, + "narHash": "sha256-sJ7rbofR7LQIVCHdLhORocWg8dR8u1PnontbgFtKvbU=", + "ref": "refs/heads/master", + "rev": "71f2b6792a9f64be2c4bca5050cb1e08edd625b2", + "revCount": 122, + "type": "git", + "url": "ssh://git@github.com/composewell/streamly-packages" + }, + "original": { + "rev": "71f2b6792a9f64be2c4bca5050cb1e08edd625b2", + "type": "git", + "url": "ssh://git@github.com/composewell/streamly-packages" + } + }, + "basepkgs_2": { + "locked": { + "lastModified": 1776352576, + "narHash": "sha256-/rNYSCE5o+u5ZRfpE+PaDjmp5ttEgSLyiRoDOgguKJw=", + "owner": "composewell", + "repo": "nixpack", + "rev": "8c0e3596f53ae42c43175b7440d9c0f5c462997c", + "type": "github" + }, + "original": { + "owner": "composewell", + "repo": "nixpack", + "rev": "8c0e3596f53ae42c43175b7440d9c0f5c462997c", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1774106199, + "narHash": "sha256-US5Tda2sKmjrg2lNHQL3jRQ6p96cgfWh3J1QBliQ8Ws=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655", + "type": "github" + } + }, + "nixpkgs-darwin": { + "locked": { + "lastModified": 1774106199, + "narHash": "sha256-US5Tda2sKmjrg2lNHQL3jRQ6p96cgfWh3J1QBliQ8Ws=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655", + "type": "github" + } + }, + "root": { + "inputs": { + "basepkgs": "basepkgs", + "nixpkgs": [ + "basepkgs", + "nixpkgs" + ], + "nixpkgs-darwin": [ + "basepkgs", + "nixpkgs-darwin" + ] + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..691afdf --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "streamly-filepath"; + + inputs = { + basepkgs.url = "git+ssh://git@github.com/composewell/streamly-packages?rev=71f2b6792a9f64be2c4bca5050cb1e08edd625b2"; + nixpkgs.follows = "basepkgs/nixpkgs"; + nixpkgs-darwin.follows = "basepkgs/nixpkgs-darwin"; + }; + + outputs = { self, nixpkgs, nixpkgs-darwin, basepkgs }: + basepkgs.nixpack.mkOutputs { + inherit nixpkgs nixpkgs-darwin basepkgs; + name = "streamly-filepath"; + sources = basepkgs.nixpack.lib.localSource "streamly-filepath" ./.; + packages = basepkgs.nixpack.lib.devPackage "streamly-filepath"; + #sources = import ./sources.nix; + #packages = import ./packages.nix; + }; +}