mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-28 02:30:44 -06:00
Compare commits
No commits in common. "fe4730b82c9633850672d24d32a4d94a05c3fabe" and "cc9cc45067f286446ad77ac4642c258a6478e423" have entirely different histories.
fe4730b82c
...
cc9cc45067
7 changed files with 9 additions and 27 deletions
20
flake.lock
20
flake.lock
|
@ -625,25 +625,11 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_8": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1716330097,
|
|
||||||
"narHash": "sha256-8BO3B7e3BiyIDsaKA0tY8O88rClYRTjvAp66y+VBUeU=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "5710852ba686cc1fd0d3b8e22b3117d43ba374c2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pixi": {
|
"pixi": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_8",
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
"pixi-source": "pixi-source"
|
"pixi-source": "pixi-source"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
f1multiviewer.url = "github:daylinmorgan/f1multiviewer-flake";
|
f1multiviewer.url = "github:daylinmorgan/f1multiviewer-flake";
|
||||||
|
|
||||||
pixi.url = "github:daylinmorgan/pixi-flake";
|
pixi.url = "github:daylinmorgan/pixi-flake";
|
||||||
|
pixi.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
@ -14,7 +13,6 @@ in
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
let
|
let
|
||||||
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
||||||
pixi = inputs.pixi.packages.${pkgs.system}.default;
|
|
||||||
in
|
in
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
|
|
|
@ -11,6 +11,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = defaultOverlays ++ [
|
nixpkgs.overlays = defaultOverlays ++ [
|
||||||
|
inputs.pixi.overlays.default
|
||||||
(final: _prev: {
|
(final: _prev: {
|
||||||
stable = import inputs.stable {
|
stable = import inputs.stable {
|
||||||
system = final.system;
|
system = final.system;
|
||||||
|
|
|
@ -38,7 +38,7 @@ var rootCmd = &cobra.Command{
|
||||||
Use: "oizys",
|
Use: "oizys",
|
||||||
Short: "nix begat oizys",
|
Short: "nix begat oizys",
|
||||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||||
oizys.Set(flake, host, cacheName, verbose)
|
oizys.Update(flake, host, cacheName, verbose)
|
||||||
oizys.CheckFlake()
|
oizys.CheckFlake()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ func (o *Oizys) Output() string {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Oizys) Set (
|
func (o *Oizys) Update(
|
||||||
flake, host, cache string,
|
flake, host, cache string,
|
||||||
verbose bool,
|
verbose bool,
|
||||||
) {
|
) {
|
||||||
|
@ -81,9 +81,9 @@ func terminalSize() (int, int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type packages struct {
|
type packages struct {
|
||||||
desc string
|
|
||||||
names []string
|
names []string
|
||||||
pad int
|
pad int
|
||||||
|
desc string
|
||||||
}
|
}
|
||||||
|
|
||||||
func parsePackages(lines []string, desc string) *packages {
|
func parsePackages(lines []string, desc string) *packages {
|
||||||
|
@ -171,14 +171,12 @@ func (o *Oizys) GitPull() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdOutput, err = o.git("pull").CombinedOutput()
|
if cmdOutput, err := o.git("pull").CombinedOutput(); err != nil {
|
||||||
if err != nil {
|
|
||||||
showFailedOutput(cmdOutput)
|
showFailedOutput(cmdOutput)
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func parseDryRun(buf string) (*packages, *packages) {
|
func parseDryRun(buf string) (*packages, *packages) {
|
||||||
lines := strings.Split(strings.TrimSpace(buf), "\n")
|
lines := strings.Split(strings.TrimSpace(buf), "\n")
|
||||||
var parts [2][]string
|
var parts [2][]string
|
||||||
|
|
2
todo.md
2
todo.md
|
@ -10,6 +10,4 @@
|
||||||
|
|
||||||
- [ ] make desktop application file for win10 vm
|
- [ ] make desktop application file for win10 vm
|
||||||
|
|
||||||
- [ ] find out why pixi on GHA is different from local (possibly from the fetch git step?)
|
|
||||||
|
|
||||||
<!-- generated with <3 by daylinmorgan/todo -->
|
<!-- generated with <3 by daylinmorgan/todo -->
|
||||||
|
|
Loading…
Reference in a new issue