fix: manage apl source via flake

This commit is contained in:
buffet 2023-06-20 11:37:09 +02:00
parent 6ece263d17
commit 2dad3d3b77
4 changed files with 29 additions and 10 deletions

View file

@ -22,6 +22,22 @@
"type": "github" "type": "github"
} }
}, },
"apl386": {
"flake": false,
"locked": {
"lastModified": 1646646198,
"narHash": "sha256-oHk4e7NRgAjGtZzQmZToYz7wCZETaj7/yRwZMeeYF2M=",
"owner": "abrudz",
"repo": "APL386",
"rev": "6332c9dbb588946a0e8c9d7984dd0c003eeea266",
"type": "github"
},
"original": {
"owner": "abrudz",
"repo": "APL386",
"type": "github"
}
},
"cmp-conventionalcommits": { "cmp-conventionalcommits": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -247,6 +263,7 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"apl386": "apl386",
"cmp-conventionalcommits": "cmp-conventionalcommits", "cmp-conventionalcommits": "cmp-conventionalcommits",
"cmp-git": "cmp-git", "cmp-git": "cmp-git",
"copilot-cmp": "copilot-cmp", "copilot-cmp": "copilot-cmp",

View file

@ -10,6 +10,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
apl386 = {
url = "github:abrudz/APL386";
flake = false;
};
cmp-conventionalcommits = { cmp-conventionalcommits = {
url = "github:davidsierradz/cmp-conventionalcommits"; url = "github:davidsierradz/cmp-conventionalcommits";
flake = false; flake = false;
@ -76,7 +81,7 @@
modules = [ modules = [
./fanya.nix ./fanya.nix
(_: {nixpkgs.overlays = [(import ./overlay) overlay-unstable];}) (_: {nixpkgs.overlays = [(import ./overlay args) overlay-unstable];})
]; ];
}; };
}; };

View file

@ -1,18 +1,13 @@
{ {
inputs,
lib, lib,
stdenvNoCC, stdenvNoCC,
fetchFromGitHub,
}: }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
pname = "apl386"; pname = "apl386";
version = "2022-03-07"; version = "unstable";
src = fetchFromGitHub { src = inputs.apl386;
owner = "abrudz";
repo = "APL386";
rev = "6332c9dbb588946a0e8c9d7984dd0c003eeea266";
sha256 = "sha256-oHk4e7NRgAjGtZzQmZToYz7wCZETaj7/yRwZMeeYF2M=";
};
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall

View file

@ -1,3 +1,5 @@
self: super: { inputs: self: super: {
inherit inputs;
apl386 = super.callPackage ./apl386 {}; apl386 = super.callPackage ./apl386 {};
} }