1
1
mirror of https://github.com/oxalica/nil.git synced 2024-12-02 08:47:45 +03:00
nil/crates/nix-interop/tests/test_flake/flake.nix
oxalica 2710d6a568 Rework nix-interop tests
Introduce a standalone test flake instead of inlining lock files or
archiving the main repository.
2023-04-28 17:05:32 +08:00

32 lines
783 B
Nix

{
# Just for tests. No need to be up-to-date.
inputs.nixpkgs.url = "github:NixOS/nixpkgs/5ed481943351e9fd354aeb557679624224de38d5";
inputs.nix = {
flake = false;
url = "github:NixOS/nix/2.13.3";
};
outputs = { nixpkgs, ... }: let
inherit (nixpkgs) lib;
forSystems = lib.genAttrs lib.systems.flakeExposed;
in {
packages = forSystems (system: {
hello = derivation rec {
pname = "hello";
version = "1.2.3";
name = "${pname}-${version}";
inherit system;
builder = "/bin/sh";
args = ":";
meta = {
description = "A test derivation";
homepage = "https://example.com";
license = [ lib.licenses.mit /* OR */ lib.licenses.asl20 ];
};
};
});
};
}