DEVELOPMENT ENVIRONMENT

~liljamo/anemos-test

ref: 29150865d1c19fecb7f40b3e54bb73ed0ea4e1c3 anemos-test/makeimg.nix -rw-r--r-- 719 bytes
29150865Jonni Liljamo feat: working anemos config 15 days ago
                                                                                
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
{
  makeWrapper,
  lib,
  pkgs,
  stdenv,
  coreutils,
  util-linux,
  e2fsprogs,
  parted,
  apk-tools,
  findutils,
  ...
}: let
in
  stdenv.mkDerivation rec {
    pname = "makeimg";
    version = "0.14.0";

    src = pkgs.fetchFromSourcehut {
      owner = "~bitfehler";
      repo = "makeimg";
      tag = "v${version}";
      hash = "sha256-cLCLCG0+ShFazuVBG9GcvVmQNJtuMkKdGEP3QNJPTAo=";
    };

    dontBuild = true;

    nativeBuildInputs = [makeWrapper];
    installPhase = ''
      install -Dm755 -t $out/bin makeimg
      wrapProgram $out/bin/makeimg --set PATH ${lib.makeBinPath [
        coreutils
        util-linux
        e2fsprogs
        parted
        apk-tools
        findutils
      ]}
    '';
  }