mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
chore: fix flake.nix
This commit is contained in:
+1
-3
@@ -1,8 +1,6 @@
|
|||||||
{lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
|
||||||
|
|
||||||
pname = "cocommit";
|
pname = "cocommit";
|
||||||
version = "1.3.0";
|
version = "1.3.0";
|
||||||
|
|
||||||
|
|||||||
Generated
+61
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1745377448,
|
||||||
|
"narHash": "sha256-jhZDfXVKdD7TSEGgzFJQvEEZ2K65UMiqW5YJ2aIqxMA=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "507b63021ada5fee621b6ca371c4fca9ca46f52c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -2,30 +2,29 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
prog_src = {
|
|
||||||
flake = false;
|
|
||||||
url = "github:Slug-Boi/cocommit";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs: let
|
outputs = { self, nixpkgs, flake-utils, ... }@inputs: let
|
||||||
forAllSys = flake-utils.lib.eachSystem flake-utils.lib.allSystems;
|
forAllSys = flake-utils.lib.eachSystem flake-utils.lib.allSystems;
|
||||||
|
|
||||||
APPNAME = "cocommit";
|
APPNAME = "cocommit";
|
||||||
appOverlay = final: prev: {
|
appOverlay = final: prev: {
|
||||||
# any pkgs overrides made here will be
|
${APPNAME} = final.callPackage ./default.nix {
|
||||||
# inherited in the arguments of default.nix
|
# Pass inputs as an argument to your package
|
||||||
# because we used final.callPackage instead of prev.callPackage
|
inherit (prev) lib fetchFromGitHub buildGoModule;
|
||||||
# i.e.
|
# Or if you need all inputs:
|
||||||
# nodejs = prev.nodejs.overrideAttrs { name = "stinky"; };
|
# inherit inputs;
|
||||||
# would make it so that final.callPackage gives the altered nodejs
|
};
|
||||||
${APPNAME} = final.callPackage ./. { inherit (inputs) prog_src; };
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
overlays.default = appOverlay;
|
overlays.default = appOverlay;
|
||||||
} // (
|
} // (
|
||||||
forAllSys (system: let
|
forAllSys (system: let
|
||||||
pkgs = import nixpkgs { inherit system; overlays = [ appOverlay ]; };
|
pkgs = import nixpkgs {
|
||||||
in{
|
inherit system;
|
||||||
|
overlays = [ appOverlay ];
|
||||||
|
};
|
||||||
|
in {
|
||||||
packages = {
|
packages = {
|
||||||
default = pkgs.${APPNAME};
|
default = pkgs.${APPNAME};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user