This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
54 lines (44 loc) · 1.47 KB
/
Copy pathflake.nix
File metadata and controls
54 lines (44 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright (c) Lumiini
# All rights reserved.
#
# This file is licensed under the MIT license (found in the
# LICENSE file in the root directory of this source tree).
{
description = "Ion shell from latest master";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
ion-src = {
url = "git+https://gitlab.redox-os.org/redox-os/ion.git?ref=master";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ion-src }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
ion = pkgs.rustPlatform.buildRustPackage rec {
pname = "ion-shell";
version = "unstable-master";
src = ion-src;
# Update this hash when the build fails with a hash mismatch.
cargoHash = "sha256-PAi0x6MB0hVqUD1v1Z/PN7bWeAAKLxgcBNnS2p6InXs=";
doCheck = false;
# Optional: set a custom version string
prePatch = ''
echo "nix-lumiini-1" > git_revision.txt
'';
meta = with pkgs.lib; {
description = "Ion shell from upstream master";
homepage = "https://gitlab.redox-os.org/redox-os/ion";
license = licenses.mit;
mainProgram = "ion";
};
};
in {
packages.default = ion;
packages.ion = ion;
apps.default = flake-utils.lib.mkApp { drv = ion; };
}
);
}