move mac hare input to flake input
This commit is contained in:
parent
1a47f9de85
commit
105f21f90b
34
flake.lock
34
flake.lock
|
@ -1,5 +1,37 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"hare-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717279340,
|
||||||
|
"narHash": "sha256-c91H21fyzHVekAB5ePduxO8l/zZ86ov8KHa1HHC8Ywc=",
|
||||||
|
"owner": "badboy",
|
||||||
|
"repo": "harelang",
|
||||||
|
"rev": "287006499c2640c6e96b6fa5e0c99a2c193cc666",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "badboy",
|
||||||
|
"repo": "harelang",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"harec-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715770447,
|
||||||
|
"narHash": "sha256-/n175ocvtzi1J+zB8+eW69YXolGFX15g9Ee0OE5jtGA=",
|
||||||
|
"owner": "badboy",
|
||||||
|
"repo": "harelang-harec",
|
||||||
|
"rev": "873311b721dca691706909964cc108139ebee0de",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "badboy",
|
||||||
|
"repo": "harelang-harec",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716220750,
|
"lastModified": 1716220750,
|
||||||
|
@ -16,6 +48,8 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"hare-src": "hare-src",
|
||||||
|
"harec-src": "harec-src",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
17
flake.nix
17
flake.nix
|
@ -1,7 +1,18 @@
|
||||||
{
|
{
|
||||||
description = "Hare for mac";
|
description = "Hare for mac";
|
||||||
|
|
||||||
outputs = { nixpkgs, ... }:
|
inputs = {
|
||||||
|
harec-src = {
|
||||||
|
url = "github:badboy/harelang-harec";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
hare-src = {
|
||||||
|
url = "github:badboy/harelang";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { nixpkgs, harec-src, hare-src, ... }:
|
||||||
let
|
let
|
||||||
supportedSystems = [ "x86_64-darwin" "aarch64-darwin" ];
|
supportedSystems = [ "x86_64-darwin" "aarch64-darwin" ];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
|
@ -13,8 +24,8 @@
|
||||||
hare-as = pkgs.callPackage ./pkgs/hare-as.nix { };
|
hare-as = pkgs.callPackage ./pkgs/hare-as.nix { };
|
||||||
hare-cc = pkgs.callPackage ./pkgs/hare-cc.nix { };
|
hare-cc = pkgs.callPackage ./pkgs/hare-cc.nix { };
|
||||||
hare-ld = pkgs.callPackage ./pkgs/hare-ld.nix { };
|
hare-ld = pkgs.callPackage ./pkgs/hare-ld.nix { };
|
||||||
harec = pkgs.callPackage ./pkgs/harec.nix { inherit hare-as hare-cc hare-ld; };
|
harec = pkgs.callPackage ./pkgs/harec.nix { inherit harec-src hare-as hare-cc hare-ld; };
|
||||||
hare = pkgs.callPackage ./pkgs/hare.nix { inherit harec hare-as hare-cc hare-ld; };
|
hare = pkgs.callPackage ./pkgs/hare.nix { inherit hare-src harec hare-as hare-cc hare-ld; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
tzdata,
|
tzdata,
|
||||||
python3,
|
python3,
|
||||||
substituteAll,
|
substituteAll,
|
||||||
|
hare-src,
|
||||||
hare-as,
|
hare-as,
|
||||||
hare-cc,
|
hare-cc,
|
||||||
hare-ld,
|
hare-ld,
|
||||||
|
@ -22,11 +23,7 @@ in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "hare";
|
pname = "hare";
|
||||||
version = "0.24";
|
version = "0.24";
|
||||||
src = builtins.fetchGit {
|
src = hare-src;
|
||||||
url = "https://github.com/badboy/harelang";
|
|
||||||
ref = "master";
|
|
||||||
rev = "287006499c2640c6e96b6fa5e0c99a2c193cc666";
|
|
||||||
};
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, qbe, hare-as, hare-cc, hare-ld }:
|
{ stdenv, qbe, harec-src, hare-as, hare-cc, hare-ld }:
|
||||||
let
|
let
|
||||||
arch = stdenv.hostPlatform.uname.processor;
|
arch = stdenv.hostPlatform.uname.processor;
|
||||||
qbePlatform = {
|
qbePlatform = {
|
||||||
|
@ -9,11 +9,7 @@ in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "harec";
|
pname = "harec";
|
||||||
version = "0.24";
|
version = "0.24";
|
||||||
src = builtins.fetchGit {
|
src = harec-src;
|
||||||
url = "https://github.com/badboy/harelang-harec";
|
|
||||||
ref = "master";
|
|
||||||
rev = "873311b721dca691706909964cc108139ebee0de";
|
|
||||||
};
|
|
||||||
buildInputs = [ qbe ];
|
buildInputs = [ qbe ];
|
||||||
nativeBuildInputs = [ qbe ];
|
nativeBuildInputs = [ qbe ];
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
Loading…
Reference in a new issue