-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also added the nix patched with schema support to the shell
- Loading branch information
Showing
9 changed files
with
223 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This file is part of Nix++. | ||
# Copyright (C) 2023 Leandro Emmanuel Reina Kiperman. | ||
# | ||
# Nix++ is free software: you can redistribute it and/or modify it under the | ||
# terms of the GNU General Public License as published by the Free Software | ||
# Foundation, either version 3 of the License, or (at your option) any later | ||
# version. | ||
# | ||
# Nix++ is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
{ ... } @ _inputs: | ||
{ | ||
version = 1; | ||
doc = '' | ||
The `apps` flake output is a set of executables that can be run using `nix run`. | ||
''; | ||
inventory = output: { | ||
children = builtins.mapAttrs | ||
(system: apps: { | ||
forSystems = [ system ]; | ||
children = builtins.mapAttrs (_: _: { what = "flake app"; }) apps; | ||
}) | ||
output | ||
; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# This file is part of Nix++. | ||
# Copyright (C) 2023 Leandro Emmanuel Reina Kiperman. | ||
# | ||
# Nix++ is free software: you can redistribute it and/or modify it under the | ||
# terms of the GNU General Public License as published by the Free Software | ||
# Foundation, either version 3 of the License, or (at your option) any later | ||
# version. | ||
# | ||
# Nix++ is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
{ nixpkgs, ... } @ _inputs: | ||
{ | ||
version = 1; | ||
doc = '' | ||
The `hydraJobs` flake output defines derivations to be built by the Hydra | ||
continuous integration system. | ||
''; | ||
inventory = output: { | ||
children = builtins.mapAttrs | ||
(_: category: { | ||
children = builtins.mapAttrs | ||
(name: jobset: | ||
let | ||
localSystem = builtins.head (nixpkgs.lib.splitString "." name); | ||
crossSystem = nixpkgs.lib.removePrefix "${localSystem}." name; | ||
|
||
in | ||
{ | ||
forSystems = [ localSystem ]; | ||
children = builtins.mapAttrs | ||
(_: job: { | ||
what = "Hydra CI job (${ | ||
if localSystem == crossSystem then | ||
"natively compiled on ${localSystem}" | ||
else | ||
"cross compiled on ${localSystem} for ${crossSystem}" | ||
})"; | ||
derivation = job; | ||
}) | ||
jobset | ||
; | ||
} | ||
) | ||
category | ||
; | ||
}) | ||
output | ||
; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# This file is part of Nix++. | ||
# Copyright (C) 2023 Leandro Emmanuel Reina Kiperman. | ||
# | ||
# Nix++ is free software: you can redistribute it and/or modify it under the | ||
# terms of the GNU General Public License as published by the Free Software | ||
# Foundation, either version 3 of the License, or (at your option) any later | ||
# version. | ||
# | ||
# Nix++ is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
{ nixpkgs, self, ... } @ _inputs: | ||
{ | ||
version = 1; | ||
doc = '' | ||
The `packages` flake output is a collection of packages that can be installed | ||
using `nix profile install`. | ||
''; | ||
inventory = output: { | ||
children = builtins.mapAttrs | ||
(localSystem: packages: { | ||
forSystems = [ localSystem ]; | ||
children = (builtins.mapAttrs | ||
(_: derivation: { | ||
what = "Derivation for (natively compiled on ${localSystem})"; | ||
inherit derivation; | ||
}) | ||
(nixpkgs.lib.filterAttrs | ||
(name: _: | ||
(builtins.all (system: name != system) self.lib.supportedSystems) | ||
&& (!nixpkgs.lib.hasPrefix "_" name) | ||
) | ||
packages | ||
) | ||
) // (builtins.listToAttrs (builtins.map | ||
(crossSystem: { | ||
name = crossSystem; | ||
value = { | ||
children = builtins.mapAttrs | ||
(_: derivation: { | ||
what = "Derivation (${ | ||
if localSystem == crossSystem then | ||
"natively compiled on ${localSystem}" | ||
else | ||
"cross compiled on ${localSystem} for ${crossSystem}" | ||
})"; | ||
inherit derivation; | ||
}) | ||
(nixpkgs.lib.filterAttrs | ||
(name: _: !nixpkgs.lib.hasPrefix "_" name) | ||
packages.${crossSystem}.passthru | ||
) | ||
; | ||
}; | ||
}) | ||
(builtins.filter | ||
(name: | ||
builtins.any (system: name == system) | ||
self.lib.supportedSystems | ||
) | ||
(builtins.attrNames packages) | ||
) | ||
)); | ||
}) | ||
output | ||
; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file is part of Nix++. | ||
# Copyright (C) 2023 Leandro Emmanuel Reina Kiperman. | ||
# | ||
# Nix++ is free software: you can redistribute it and/or modify it under the | ||
# terms of the GNU General Public License as published by the Free Software | ||
# Foundation, either version 3 of the License, or (at your option) any later | ||
# version. | ||
# | ||
# Nix++ is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
{ ... } @ _inputs: | ||
{ | ||
version = 1; | ||
doc = '' | ||
The `templates` flake output is used to provide ways to create new flakes using | ||
`nix flake init`. | ||
''; | ||
inventory = output: { | ||
children = builtins.mapAttrs | ||
(_: _: { what = "flake template"; }) | ||
output | ||
; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters