~remexre/multiclip

dab942c10b2ab0049298414a64b73409aff0b263 — Nathan Ringo 2 months ago bff6059
Adds flake.
2 files changed, 74 insertions(+), 0 deletions(-)

A flake.lock
A flake.nix
A flake.lock => flake.lock +41 -0
@@ 0,0 1,41 @@
{
  "nodes": {
    "flake-utils": {
      "locked": {
        "lastModified": 1623875721,
        "narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "f7e004a55b120c02ecb6219596820fcd32ca8772",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1627352951,
        "narHash": "sha256-6P+sDCOcZvRL21tL9gx0j5TKDOUntcuAoOlASrHGOE8=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "0ffdd74547be88eebd45ca6f3d5487b4a84ae232",
        "type": "github"
      },
      "original": {
        "id": "nixpkgs",
        "type": "indirect"
      }
    },
    "root": {
      "inputs": {
        "flake-utils": "flake-utils",
        "nixpkgs": "nixpkgs"
      }
    }
  },
  "root": "root",
  "version": 7
}

A flake.nix => flake.nix +33 -0
@@ 0,0 1,33 @@
{
  description =
    "A clipboard tool that copies a PNG file and a text selection at the same time.";
  inputs.flake-utils.url = "github:numtide/flake-utils";
  outputs = { self, flake-utils, nixpkgs, }:
    let
      systems = [
        # These are the Linux systems nixpkgs supports.
        "x86_64-linux"
        "i686-linux"
        "aarch64-linux"
        "armv6l-linux"
        "armv7l-linux"
      ];
    in flake-utils.lib.eachSystem systems (system:
      let pkgs = nixpkgs.legacyPackages.${system};
      in rec {
        defaultPackage = pkgs.stdenv.mkDerivation {
          pname = "multiclip";
          version = "0.1.0";
          src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
          meta = {
            description =
              "A clipboard tool that copies a PNG file and a text selection at the same time.";
            homepage = "https://git.sr.ht/~remexre/multiclip";
            license = pkgs.lib.licenses.mit;
            platforms = pkgs.lib.platforms.linux;
          };
        };
        hydraJobs.package = defaultPackage;
        packages = { multiclip = defaultPackage; };
      });
}