Content-Length: 301739 | pFad | http://github.com/mattpolzin/ncurses-idris/commit/7a7bded3737abe6f5ff5d7d98f0d11a9bd50f634

A9 update indexed dependency and modernize nix stuff a bit · mattpolzin/ncurses-idris@7a7bded · GitHub
Skip to content

Commit

Permalink
update indexed dependency and modernize nix stuff a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Dec 9, 2024
1 parent e4faae7 commit 7a7bded
Show file tree
Hide file tree
Showing 5 changed files with 1,079 additions and 133 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ IDRIS2 ?= idris2
# system libncurses version:
NCURSES_VERSION ?=
# indexed Idris package:
INDEXED_VERSION = 0.0.9
INDEXED_VERSION = 0.0.10
# install in the local depends directory by default:
INDEXED_INSTALL_LOCATION ?= ./depends

Expand Down
7 changes: 7 additions & 0 deletions examples/control_curses_ticker/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{ buildIdris, ncurses-idris }:
(buildIdris {
ipkgName = "control_curses_ticker";
version = "0.0.1";
src = ./.;
idrisLibraries = [ ncurses-idris ];
}).executable
41 changes: 3 additions & 38 deletions examples/control_curses_ticker/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,15 @@

inputs = {
flake-utils.url = "github:numtide/flake-utils";
idris2 = {
url = "github:idris-lang/idris2/main";
inputs.nixpkgs.follows = "nixpkgs";
};
ncurses-idris = {
url = "github:mattpolzin/ncurses-idris/main";
inputs.nixpkgs.follows = "nixpkgs";
inputs.idris2.follows = "idris2";
};
ncurses-idris.url = "github:mattpolzin/ncurses-idris/main";
};

outputs = { self, nixpkgs, flake-utils, idris2, ncurses-idris }:
outputs = { nixpkgs, flake-utils, ncurses-idris, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) stdenv;
idris2' = idris2.defaultPackage.${system};
ncurses-idris' = ncurses-idris.packages.${system}.default;
inherit (builtins) concatStringsSep;
in rec {
packages.control-curses-ticker = stdenv.mkDerivation rec {
name = "control-curses-ticker";
version = "0.0.1";
src = ./.;
idrisPackages = [ ncurses-idris' ] ++ ncurses-idris'.idrisPackages;
buildInputs = [
idris2'
] ++ idrisPackages;

IDRIS2="${idris2'}/bin/idris2";
IDRIS2_PACKAGE_PATH = concatStringsSep ":" (map (p: "${p}/idris2-${idris2'.version}") idrisPackages);

buildPhase = ''
make clean
make app
'';

installPhase = ''
rm ./build/exec/control_curses_ticker_app/compileChez
rm ./build/exec/control_curses_ticker_app/control_curses_ticker.ss
mkdir -p $out/bin/control_curses_ticker_app
install ./build/exec/control_curses_ticker_app/* $out/bin/control_curses_ticker_app/
install ./build/exec/control_curses_ticker $out/bin/
'';
};
packages.control-curses-ticker = import ./. { inherit (pkgs) buildIdris; ncurses-idris = ncurses-idris'; };
packages.default = packages.control-curses-ticker;
apps.control-curses-ticker = flake-utils.lib.mkApp { drv = packages.control-curses-ticker; };
apps.default = apps.control-curses-ticker;
Expand Down
Loading

0 comments on commit 7a7bded

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/mattpolzin/ncurses-idris/commit/7a7bded3737abe6f5ff5d7d98f0d11a9bd50f634

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy